about summary refs log tree commit diff stats
path: root/test_apps
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-03-06 17:41:36 -0800
committerKartik Agaram <vc@akkartik.com>2020-03-06 17:42:17 -0800
commit5c26afb1de61dc650f0f7523c92143747c960432 (patch)
tree22c00a6ba562cbd80e2432201399ee800c5247da /test_apps
parent0743b981a823049bfe0a24f9204e629ce375af39 (diff)
downloadmu-5c26afb1de61dc650f0f7523c92143747c960432.tar.gz
6088 - start using setCC instructions
Diffstat (limited to 'test_apps')
-rwxr-xr-xtest_apps12
1 files changed, 12 insertions, 0 deletions
diff --git a/test_apps b/test_apps
index 1067f518..52cceeb7 100755
--- a/test_apps
+++ b/test_apps
@@ -167,6 +167,18 @@ test "$1" = 'record'  || git diff --exit-code apps/ex12
 test $EMULATED  &&  ./bootstrap run apps/ex12  # final byte of mmap'd address is well-nigh guaranteed to be 0
 test $NATIVE  &&  apps/ex12
 
+echo ex13
+./bootstrap translate init.$OS apps/ex13.subx  -o apps/ex13
+test "$1" = 'record'  ||  git diff --exit-code apps/ex13
+test $EMULATED  &&  {
+  ./bootstrap run apps/ex13  ||  ret=$?
+  test $ret -eq 1  # 3 == 3
+}
+test $NATIVE  &&  {
+  apps/ex13  ||  ret=$?
+  test $ret -eq 1  # 3 == 3
+}
+
 # Larger apps that use the standard library.
 
 echo factorial