[PING^2 PATCH 1/1] sim/testsuite: Trim extra path from arch

Tsukasa OI research_trasio@irq.a4lg.com
Wed Sep 14 10:56:30 GMT 2022


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.
-- 
2.34.1



More information about the Gdb-patches mailing list