about summary refs log tree commit diff stats
path: root/subx/test_apps
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-10-10 23:39:50 -0700
committerKartik Agaram <vc@akkartik.com>2018-10-11 00:08:50 -0700
commitc25d9aa42a7d3ea142ca8cb3887030866ac32a6f (patch)
treeeffacfcb2088b3b36467e1abb5d281cc836dba22 /subx/test_apps
parentb59b75310abdd3c6c6a63654ab2ae14d46c2028e (diff)
downloadmu-c25d9aa42a7d3ea142ca8cb3887030866ac32a6f.tar.gz
4684
Turns out the tests for 'trace' have been broken in native mode since the
original commit (4674). Dangers of running my tests on Darwin, where I
can't run them natively.

The test failures didn't get flagged on CI because I'd forgotten to update
the exit code of the factorial app in commit 4664. At least that's fixed
in this commit.
Diffstat (limited to 'subx/test_apps')
-rwxr-xr-xsubx/test_apps8
1 files changed, 7 insertions, 1 deletions
diff --git a/subx/test_apps b/subx/test_apps
index 8f00e538..a8060016 100755
--- a/subx/test_apps
+++ b/subx/test_apps
@@ -115,7 +115,11 @@ echo ex11
 CFLAGS=-g ./subx translate examples/ex11.subx  -o examples/ex11
 test `uname -m` = 'i686'  &&  git diff --quiet examples/ex11
 CFLAGS=-g ./subx run examples/ex11
-test `uname` = 'Linux'  &&  examples/ex11
+echo
+test `uname` = 'Linux'  &&  {
+  examples/ex11
+  echo
+}
 
 echo ex12
 CFLAGS=-g ./subx translate examples/ex12.subx  -o examples/ex12
@@ -129,10 +133,12 @@ test `uname -m` = 'i686'  &&  git diff --quiet apps/factorial
 CFLAGS=-g ./subx run apps/factorial  ||  ret=$?
 test $ret -eq 120  # factorial(5)
 CFLAGS=-g ./subx run apps/factorial test
+echo
 test `uname` = 'Linux'  &&  {
   apps/factorial  ||  ret=$?
   test $ret -eq 120  # factorial(5)
   apps/factorial test
+  echo
 }
 
 echo crenshaw2-1