| ... | ... |
@@ -22,7 +22,8 @@ EOD |
| 22 | 22 |
|
| 23 | 23 |
expect_failure() {
|
| 24 | 24 |
cat > 'in.tal' |
| 25 |
- if ../bin/uxncli asma.rom > asma.log 2>/dev/null || ! grep -qF "${1}" asma.log; then
|
|
| 25 |
+ ../bin/uxncli asma.rom > asma.log 2>/dev/null |
|
| 26 |
+ if ! grep -qF "${1}" asma.log; then
|
|
| 26 | 27 |
echo "error: asma didn't report error ${1} in faulty code"
|
| 27 | 28 |
tail asma.log |
| 28 | 29 |
exit 1 |
| ... | ... |
@@ -44,7 +45,9 @@ find ../projects -type f -name '*.tal' -not -name 'blank.tal' | sort | while rea |
| 44 | 45 |
xxd "uxnasm-${BN}.rom" > "uxnasm-${BN}.hex"
|
| 45 | 46 |
|
| 46 | 47 |
cp "${F}" 'in.tal'
|
| 47 |
- if ! ../bin/uxncli asma.rom > asma.log; then |
|
| 48 |
+ rm -f 'out.rom' |
|
| 49 |
+ ../bin/uxncli asma.rom > asma.log |
|
| 50 |
+ if [ ! -f 'out.rom' ]; then |
|
| 48 | 51 |
echo "error: asma failed to assemble ${F}, while uxnasm succeeded"
|
| 49 | 52 |
tail asma.log |
| 50 | 53 |
exit 1 |