From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by sourceware.org (Postfix) with ESMTPS id 7A9AF388F04A for ; Mon, 25 May 2020 09:39:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 7A9AF388F04A IronPort-SDR: Yi4S3sAlr+CFOIaWhW90t0t24W7iLLhfuEweIxFALhxwwr0thQ+Q/zTecHbeQ7uyrDdxZJHy+1 s0vJkzOXLoeg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 May 2020 02:39:18 -0700 IronPort-SDR: c9g+o6ZSaWSOg2SGTuKW0kwRsMlJ+NIaBmWwtoNaKmxfLi/oppS4HnnjcKMJpdS3H38ShfJOln 12awXuwuEODQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,433,1583222400"; d="scan'208";a="413460567" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by orsmga004.jf.intel.com with ESMTP; 25 May 2020 02:39:16 -0700 Received: from ulvlx001.iul.intel.com (ulvlx001.iul.intel.com [172.28.207.17]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id 04P9dG7L026920; Mon, 25 May 2020 10:39:16 +0100 Received: from ulvlx001.iul.intel.com (localhost [127.0.0.1]) by ulvlx001.iul.intel.com with ESMTP id 04P9dGWV001382; Mon, 25 May 2020 11:39:16 +0200 Received: (from taktemur@localhost) by ulvlx001.iul.intel.com with LOCAL id 04P9dFbS001378; Mon, 25 May 2020 11:39:16 +0200 From: Tankut Baris Aktemur To: gdb-patches@sourceware.org Subject: [PATCH 3/3] gdb/testsuite: fix minor things in jit tests Date: Mon, 25 May 2020 11:38:47 +0200 Message-Id: <5260086312a9ec7d276a432ca88126924e0f2b5d.1590397723.git.tankut.baris.aktemur@intel.com> X-Mailer: git-send-email 1.7.0.7 In-Reply-To: References: In-Reply-To: References: X-Spam-Status: No, score=-24.4 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_NONE, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 May 2020 09:39:20 -0000 gdb/testsuite/ChangeLog: 2020-05-25 Tankut Baris Aktemur * gdb.base/jit-elf-so.exp: Refer to the global main_loader_basename variable. * gdb.base/jit-reader-simple.exp: Fix typo ("Built" -> "Build"), and use the already-defined 'options' variable. --- gdb/testsuite/gdb.base/jit-elf-so.exp | 2 +- gdb/testsuite/gdb.base/jit-reader-simple.exp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gdb/testsuite/gdb.base/jit-elf-so.exp b/gdb/testsuite/gdb.base/jit-elf-so.exp index 51c1d33ff9b..091fe5df812 100644 --- a/gdb/testsuite/gdb.base/jit-elf-so.exp +++ b/gdb/testsuite/gdb.base/jit-elf-so.exp @@ -50,7 +50,7 @@ set jit_solib_srcfile ${srcdir}/${subdir}/${jit_solib_basename}.c # On success, return 0. # On failure, return -1. proc compile_jit_dlmain {options} { - global main_loader_srcfile main_loader_binfile + global main_loader_srcfile main_loader_binfile main_loader_basename set options [concat $options debug] if { [gdb_compile ${main_loader_srcfile} ${main_loader_binfile} \ diff --git a/gdb/testsuite/gdb.base/jit-reader-simple.exp b/gdb/testsuite/gdb.base/jit-reader-simple.exp index 930c59c0124..d8a54a37ce7 100644 --- a/gdb/testsuite/gdb.base/jit-reader-simple.exp +++ b/gdb/testsuite/gdb.base/jit-reader-simple.exp @@ -77,12 +77,12 @@ if {[build_shared_jit] == -1} { return } -# Built the program that loads the JIT library. +# Build the program that loads the JIT library. set srcfile_dl $testfile-dl.c set binfile_dl $binfile-dl set options [list debug shlib=${binfile_lib}] if {[gdb_compile ${srcdir}/${subdir}/${srcfile_dl} $binfile_dl executable \ - [list debug shlib=$binfile_lib]] == -1 } { + $options] == -1 } { untested "failed to compile" return -1 } -- 2.17.1