Avoid hard-coding a redundant "FATAL:" in RGBLINK

This commit is contained in:
Rangi42
2025-07-27 20:07:53 -04:00
parent 8b1a5244f7
commit d16751f56a
5 changed files with 46 additions and 11 deletions

View File

@@ -0,0 +1,4 @@
FOR n, 15
SECTION "test {d:n}", ROM0
db n
ENDR

View File

@@ -0,0 +1,13 @@
FATAL: All sections must be fixed when using an overlay file; 15 are not:
- "test 14"
- "test 13"
- "test 12"
- "test 11"
- "test 10"
- "test 9"
- "test 8"
- "test 7"
- "test 6"
- "test 5"
- and 5 more
Linking aborted with 1 error

File diff suppressed because one or more lines are too long

View File

@@ -233,6 +233,14 @@ tryDiff "$test"/out.err "$outtemp"
tryCmp "$test"/out.gb "$gbtemp"
evaluateTest
test="overlay/unfixed"
startTest
"$RGBASM" -o "$otemp" "$test"/a.asm
continueTest
rgblinkQuiet -o "$gbtemp" -O "$test"/overlay.gb "$otemp" 2>"$outtemp"
tryDiff "$test"/out.err "$outtemp"
evaluateTest
test="overlay/tiny"
startTest
"$RGBASM" -o "$otemp" "$test"/a.asm