public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] sim: testsuite: fix cris badarch in multi-target builds
@ 2022-11-02 14:45 Mike Frysinger
  0 siblings, 0 replies; only message in thread
From: Mike Frysinger @ 2022-11-02 14:45 UTC (permalink / raw)
  To: gdb-patches

This test assumes that /bin/sh will never be a CRIS ELF by way of
assuming that the current bfd cannot load it (since a basic cris
cross-compiler only understands CRIS ELFs).  In a multi-target
build though, bfd understands just about every ELF out there, so
we're able to read the /bin/sh format before failing at a diff
point in the cris code.

Let's switch to using / instead since it'll fail for a similar
reason (at least similar enough for what this test is testing).
---
 sim/testsuite/cris/asm/badarch1.ms | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sim/testsuite/cris/asm/badarch1.ms b/sim/testsuite/cris/asm/badarch1.ms
index 3d0d8121834a..c7f27390efa0 100644
--- a/sim/testsuite/cris/asm/badarch1.ms
+++ b/sim/testsuite/cris/asm/badarch1.ms
@@ -1,5 +1,5 @@
 # mach: crisv3 crisv8 crisv10 crisv32
 # xerror:
 # output: *not a CRIS program*
-# sim: /bin/sh
+# sim: /
  .include "nopv32t.ms"
-- 
2.37.3


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

only message in thread, other threads:[~2022-11-02 15:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-02 14:45 [PATCH] sim: testsuite: fix cris badarch in multi-target builds Mike Frysinger

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