about summary refs log tree commit diff
path: root/tests/lang.sh
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2006-10-17T11·08+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2006-10-17T11·08+0000
commit9e30694f9838ff16533f614788c782503fe20967 (patch)
tree126a0d8786e74569c3975800ae67b3766e9529f8 /tests/lang.sh
parentbe1961c9f8fbf71ab8ba7ba7a2da5dbb21be54b4 (diff)
* Fix the tests wrt the AST changes, i.e., Str(s) -> Str(s, []), and
  the semantic changes.

Diffstat (limited to 'tests/lang.sh')
-rw-r--r--tests/lang.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/lang.sh b/tests/lang.sh
index 2a14deeea8ed..851d89136c56 100644
--- a/tests/lang.sh
+++ b/tests/lang.sh
@@ -43,8 +43,7 @@ for i in lang/eval-okay-*.nix; do
         if ! $nixinstantiate --eval-only lang/$i.nix > lang/$i.out; then
             echo "FAIL: $i should evaluate"
             fail=1
-        fi
-        if ! $aterm_bin/atdiff lang/$i.out lang/$i.exp; then
+        elif ! $aterm_bin/atdiff lang/$i.out lang/$i.exp; then
             echo "FAIL: evaluation result of $i not as expected"
             fail=1
         fi
@@ -54,8 +53,7 @@ for i in lang/eval-okay-*.nix; do
         if ! $nixinstantiate --eval-only --xml --strict lang/$i.nix > lang/$i.out.xml; then
             echo "FAIL: $i should evaluate"
             fail=1
-        fi
-        if ! cmp -s lang/$i.out.xml lang/$i.exp.xml; then
+        elif ! cmp -s lang/$i.out.xml lang/$i.exp.xml; then
             echo "FAIL: XML evaluation result of $i not as expected"
             fail=1
         fi