aboutsummaryrefslogtreecommitdiff
path: root/sim/testsuite/ChangeLog
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-01-05 01:26:21 -0500
committerMike Frysinger <vapier@gentoo.org>2021-01-15 01:33:35 -0500
commit37a9c3a53e3705c5120506e457455642702845e6 (patch)
treebd55d53db865c08ba94edebf9e9b3a44538f97ae /sim/testsuite/ChangeLog
parent3624a6c15ce48e03d43983ec11d586d97ca08728 (diff)
downloadbinutils-37a9c3a53e3705c5120506e457455642702845e6.zip
binutils-37a9c3a53e3705c5120506e457455642702845e6.tar.gz
binutils-37a9c3a53e3705c5120506e457455642702845e6.tar.bz2
sim: testsuite: allow tests to declare expected exit status
Some tests want to verify they can control the exit status, and allowing any non-zero value would allow tests to silently fail: if it crashed & exited 1, or forced all non-zero to 1, then we wouldn't be able to differentiate with a test exiting with a status like 47. Extend the test harness to allow tests to declare their expected exit status that would be defined as a "pass". This requires a small tweak to the sim_run API to return the status directly, but that shouldn't be a big deal as it's only used by sim code.
Diffstat (limited to 'sim/testsuite/ChangeLog')
-rw-r--r--sim/testsuite/ChangeLog6
1 files changed, 6 insertions, 0 deletions
diff --git a/sim/testsuite/ChangeLog b/sim/testsuite/ChangeLog
index a32672a..1245ab4 100644
--- a/sim/testsuite/ChangeLog
+++ b/sim/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2021-01-15 Mike Frysinger <vapier@gentoo.org>
+
+ * lib/sim-defs.exp (sim_run): Delete status and return return_code.
+ (run_sim_test): Define status option. Change sim_run return to
+ return_code. Define status. Log return_code.
+
2021-01-11 Mike Frysinger <vapier@gentoo.org>
* common/alu-tst.c: Include stdlib.h.