]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
sim: testsuite: fix cris stat3 in diff setups
authorMike Frysinger <vapier@gentoo.org>
Wed, 2 Nov 2022 14:42:54 +0000 (20:27 +0545)
committerMike Frysinger <vapier@gentoo.org>
Thu, 3 Nov 2022 18:42:41 +0000 (01:42 +0700)
commit7b3dd7b9b3b20cbcf624e85a0d1305c5e3d68663
tree25af0e05e205884a67d4d911859c91b076787430
parent4ce3ba0865ee156be63c3d763f1678cbe57d7dd6
sim: testsuite: fix cris stat3 in diff setups

This test uses the test itself as an input to stating regular files.
This gets funky though: when we run check in parallel, the output
object dir is the subdir that matches the .exp file.  When we run
with -j1, the output object dir is the sim builddir itself.

The old test would append argv[0] to find the file, while the new
test uses basename on it.  Each method works in only one of the
aforementioned build scenarios.  Rather than complicate this any
more, switch to a different file that we know will always exist:
the Makefile.
sim/testsuite/cris/c/stat3.c