From 5b9903f358356d06cfb53036dce9d35900ce18d8 Mon Sep 17 00:00:00 2001 From: ISSOtm Date: Thu, 17 Sep 2026 15:55:41 -0400 Subject: [PATCH] Mark a link test as failed if assembling fails Assembling is never *supposed* to fail, but in this case I ended up adding a test case that triggered a bug in the assembler, and that caused the rest of the test to become garbled. This is thus more robust. --- test/link/test.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/link/test.sh b/test/link/test.sh index 50fd07b4..945daaee 100755 --- a/test/link/test.sh +++ b/test/link/test.sh @@ -85,7 +85,13 @@ evaluateTest () { for i in *.asm; do test=${i%.asm} startTest - "$RGBASM" -o "$otemp" "${test}.asm" + if ! "$RGBASM" -o "$otemp" "${test}.asm"; then + echo "$bold${red}Failed to assemble $test.asm!$rescolors$resbold" + our_rc=1 + evaluateTest + continue + fi + RGBLINKFLAGS=() if [ -f "${test}.flags" ]; then