From fa04aebdc2e4ee9bdf14d5c2649756f62b7d2a37 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Mon, 19 Nov 2018 23:33:23 -0800 Subject: 4756 Long-standing and long-copied typo has been messing with our exit status on test failures. --- subx/055trace.subx | 2 +- subx/056write.subx | 2 +- subx/058read.subx | 2 +- subx/059read-byte.subx | 2 +- subx/apps/crenshaw2-1 | Bin 4723 -> 4723 bytes subx/apps/factorial | Bin 4740 -> 4740 bytes 6 files changed, 4 insertions(+), 4 deletions(-) diff --git a/subx/055trace.subx b/subx/055trace.subx index f7423ef7..27d5efc8 100644 --- a/subx/055trace.subx +++ b/subx/055trace.subx @@ -46,7 +46,7 @@ _test-trace-stream: # main: (manual test if this is the last file loaded) e8/call run-tests/disp32 # 'run-tests' is a function created automatically by SubX. It calls all functions that start with 'test-'. # syscall(exit, Num-test-failures) - 8b/copy 0/mod/indirect 5/rm32/.disp32 . . 1/r32/EBX Num-test-failures/disp32 # copy *Num-test-failures to EBX + 8b/copy 0/mod/indirect 5/rm32/.disp32 . . 3/r32/EBX Num-test-failures/disp32 # copy *Num-test-failures to EBX b8/copy-to-EAX 1/imm32 cd/syscall 0x80/imm8 diff --git a/subx/056write.subx b/subx/056write.subx index 015f9f69..5d3be45e 100644 --- a/subx/056write.subx +++ b/subx/056write.subx @@ -24,7 +24,7 @@ # main: (manual test if this is the last file loaded) e8/call run-tests/disp32 # 'run-tests' is a function created automatically by SubX. It calls all functions that start with 'test-'. # syscall(exit, Num-test-failures) - 8b/copy 0/mod/indirect 5/rm32/.disp32 . . 1/r32/EBX Num-test-failures/disp32 # copy *Num-test-failures to EBX + 8b/copy 0/mod/indirect 5/rm32/.disp32 . . 3/r32/EBX Num-test-failures/disp32 # copy *Num-test-failures to EBX b8/copy-to-EAX 1/imm32 cd/syscall 0x80/imm8 diff --git a/subx/058read.subx b/subx/058read.subx index a43a8718..7917faa5 100644 --- a/subx/058read.subx +++ b/subx/058read.subx @@ -49,7 +49,7 @@ # main: (manual test if this is the last file loaded) e8/call run-tests/disp32 # 'run-tests' is a function created automatically by SubX. It calls all functions that start with 'test-'. # syscall(exit, Num-test-failures) - 8b/copy 0/mod/indirect 5/rm32/.disp32 . . 1/r32/EBX Num-test-failures/disp32 # copy *Num-test-failures to EBX + 8b/copy 0/mod/indirect 5/rm32/.disp32 . . 3/r32/EBX Num-test-failures/disp32 # copy *Num-test-failures to EBX b8/copy-to-EAX 1/imm32 cd/syscall 0x80/imm8 diff --git a/subx/059read-byte.subx b/subx/059read-byte.subx index da6f8409..e871fbb4 100644 --- a/subx/059read-byte.subx +++ b/subx/059read-byte.subx @@ -36,7 +36,7 @@ Stdin: e8/call run-tests/disp32 # 'run-tests' is a function created automatically by SubX. It calls all functions that start with 'test-'. #? e8/call test-read-byte-multiple/disp32 # syscall(exit, Num-test-failures) - 8b/copy 0/mod/indirect 5/rm32/.disp32 . . 1/r32/EBX Num-test-failures/disp32 # copy *Num-test-failures to EBX + 8b/copy 0/mod/indirect 5/rm32/.disp32 . . 3/r32/EBX Num-test-failures/disp32 # copy *Num-test-failures to EBX b8/copy-to-EAX 1/imm32 cd/syscall 0x80/imm8 diff --git a/subx/apps/crenshaw2-1 b/subx/apps/crenshaw2-1 index fbc30745..8a4edcb7 100755 Binary files a/subx/apps/crenshaw2-1 and b/subx/apps/crenshaw2-1 differ diff --git a/subx/apps/factorial b/subx/apps/factorial index e1dc07f9..65a8083c 100755 Binary files a/subx/apps/factorial and b/subx/apps/factorial differ -- cgit 1.4.1-2-gfad0