public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] sim/testsuite: Trim extra path from arch
@ 2022-07-14 10:38 Tsukasa OI
  0 siblings, 0 replies; only message in thread
From: Tsukasa OI @ 2022-07-14 10:38 UTC (permalink / raw)
  To: Tsukasa OI; +Cc: binutils

If subdir begins with "./", sim_arch returned "./ARCH" instead of
"ARCH" and target-specific check-sim is prevented.  This commit fixes
the issue to make `make check-sim' work.

sim/ChangeLog:

	* testsuite/lib/sim-defs.exp: Fix return value of sim_arch.
---
 sim/testsuite/lib/sim-defs.exp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sim/testsuite/lib/sim-defs.exp b/sim/testsuite/lib/sim-defs.exp
index 5528d64684b..6d8f0134089 100644
--- a/sim/testsuite/lib/sim-defs.exp
+++ b/sim/testsuite/lib/sim-defs.exp
@@ -14,7 +14,7 @@ proc sim_arch {} {
     while { [file dirname $arch] != "." } {
 	set arch [file dirname $arch]
     }
-    return "$arch"
+    return [file tail $arch]
 }
 
 # Initialize the testrun.

base-commit: 2df41bda2f80a1fbd443c44ee1bd54da579fc8a2
-- 
2.34.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-07-14 10:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-14 10:38 [PATCH] sim/testsuite: Trim extra path from arch Tsukasa OI

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).