From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1521) id 3AF2D385841B; Thu, 3 Nov 2022 18:43:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3AF2D385841B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1667500983; bh=QwQw411tzYhc0cWfBYCbwdqkecBoIG8MEggpipoIYoo=; h=From:To:Subject:Date:From; b=brmW3gSqerDtTCO0WslElThzW5tBE3LIV+3R/VjvR6DpLQp3OaJXCJWfvYdgyckYs j0BcWPm/4Ulimum3kUn2aPSaCU/G3fWiyKoYcLBYS6d6LX6Lb54L8SqCv2SVtUXpHL aTiouhV6yaGQmQ2HELk/wzwh0eppoPVaob0jzQpA= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Michael Frysinger To: gdb-cvs@sourceware.org Subject: [binutils-gdb] sim: testsuite: fix cris badarch in multi-target builds X-Act-Checkin: binutils-gdb X-Git-Author: Mike Frysinger X-Git-Refname: refs/heads/master X-Git-Oldrev: 2734f0a2750442e83132fcede8ba62cdf6f3c63e X-Git-Newrev: 4ce3ba0865ee156be63c3d763f1678cbe57d7dd6 Message-Id: <20221103184303.3AF2D385841B@sourceware.org> Date: Thu, 3 Nov 2022 18:43:02 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D4ce3ba0865ee= 156be63c3d763f1678cbe57d7dd6 commit 4ce3ba0865ee156be63c3d763f1678cbe57d7dd6 Author: Mike Frysinger Date: Wed Nov 2 20:25:27 2022 +0545 sim: testsuite: fix cris badarch in multi-target builds =20 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. =20 Let's switch to using / instead since it'll fail for a similar reason (at least similar enough for what this test is testing). Diff: --- 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/ba= darch1.ms index 3d0d8121834..c7f27390efa 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"