shithub: rgbds

Download patch

ref: 611bd46e0b9ab647a57f9ef0ecb38ad67370be0c
parent: e67254093ef2b5fce2842a2e74e06e7a45fd1da9
author: ISSOtm <eldredhabert0@gmail.com>
date: Tue Mar 9 17:58:32 EST 2021

Ignore CRLF vs LF for syntax error test check

--- a/test/asm/test.sh
+++ b/test/asm/test.sh
@@ -62,10 +62,10 @@
 # Check whether to use '.simple.err' files if they exist
 # (rgbasm with pre-3.0 Bison just reports "syntax error")
 $RGBASM -Weverything -o $o syntax-error.asm > $output 2> $errput
-cmp syntax-error.err $errput > /dev/null 2> /dev/null
-simple_error=$?
-if [ "$simple_error" -eq 1 ]; then
+simple_error=0
+if ! diff --strip-trailing-cr syntax-error.err $errput; then
 	echo "${bold}${orange}Warning: using .simple.err files when available.${rescolors}${resbold}"
+	simple_error=1
 fi
 
 for i in *.asm; do