about summary refs log tree commit diff stats
path: root/subx/test_apps
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2019-05-22 21:52:45 -0700
committerKartik Agaram <vc@akkartik.com>2019-05-22 21:54:30 -0700
commit912dc904eb3bb69f25a8b78977fa9137b6602163 (patch)
tree29fe197d74c7008d5c4c78c3224cdecef711a6dc /subx/test_apps
parent3a0446237e255e56202a4f1f9662da64b59a80ab (diff)
downloadmu-912dc904eb3bb69f25a8b78977fa9137b6602163.tar.gz
5219
After fixing bugs, checking alloc_ids now requires 9 instructions rather
than 6.
Diffstat (limited to 'subx/test_apps')
-rwxr-xr-xsubx/test_apps8
1 files changed, 6 insertions, 2 deletions
diff --git a/subx/test_apps b/subx/test_apps
index 08153d67..dd179655 100755
--- a/subx/test_apps
+++ b/subx/test_apps
@@ -131,9 +131,13 @@ test `uname` = 'Linux'  &&  examples/ex12
 echo handle
 ./subx translate 0*.subx apps/handle.subx  -o apps/handle
 [ "$1" != record ]  &&  git diff --exit-code apps/handle
-./subx run apps/handle 2>&1  |grep -q 'lookup failed'
+./subx run apps/handle >& handle.out  ||  true
+grep -q 'lookup succeeded' handle.out  ||  { echo "missing success test"; exit 1; }
+grep -q 'lookup failed' handle.out  ||  { echo "missing failure test"; exit 1; }
 test `uname` = 'Linux'  &&  {
-  apps/handle test 2>&1  |grep -q 'lookup failed'
+  apps/handle >& handle.out  ||  true
+  grep -q 'lookup succeeded' handle.out  ||  { echo "missing success test"; exit 1; }
+  grep -q 'lookup failed' handle.out  ||  { echo "missing failure test"; exit 1; }
 }
 
 echo factorial