Fix too-short .out.bin expected test results

RGBASM tests now use `rgblink -x` instead of `dd` to get trimmed
test output. RGBLINK tests cannot do so because some of them
(e.g. bank-numbers.asm and sizeof-startof.asm) rely on ROMX
sections above 1, and `-x` implies `-t` which breaks that.
This commit is contained in:
Rangi42
2025-09-15 09:12:26 -04:00
parent 9f16881d64
commit 1fdeb34e50
6 changed files with 5 additions and 5 deletions

View File

@@ -58,6 +58,7 @@ tryCmp () {
tryCmpRom () {
# `printf` lets us keep only the first returned word from `wc`.
rom_size=$(printf %s $(wc -c <"$1"))
# 'rgblink -x' implies '-t', so we cannot use '-x' to trim the ROM output
dd if="$gbtemp" count=1 bs="$rom_size" >"$otemp" 2>/dev/null
tryCmp "$1" "$otemp"
}