aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar David Adam <zanchey@ucc.gu.uwa.edu.au>2014-01-13 17:14:24 +0800
committerGravatar David Adam <zanchey@ucc.gu.uwa.edu.au>2014-01-15 23:50:42 +0800
commit3106cffb6508884058f418ef39d47356b09f50f7 (patch)
tree6d17a1fb986328a564c12c536664a8da35595ee7
parent7874cdf52adcfb3fef0a528c893fe38d7054c197 (diff)
Makefile/tests: use return values to communicate errors
-rw-r--r--Makefile.in3
-rwxr-xr-xtests/test.fish4
2 files changed, 4 insertions, 3 deletions
diff --git a/Makefile.in b/Makefile.in
index 31b23d5e..50b73522 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -302,7 +302,8 @@ doc/refman.pdf: doc
#
test: $(PROGRAMS) fish_tests
- ./fish_tests; cd tests; ../fish <test.fish;
+ ./fish_tests
+ cd tests; ../fish <test.fish;
.PHONY: test
diff --git a/tests/test.fish b/tests/test.fish
index 6d2ce42c..2b796ef8 100755
--- a/tests/test.fish
+++ b/tests/test.fish
@@ -40,11 +40,11 @@ if [ "$argv" != '-n' ]
if test $res = ok;
echo File test.fish tested ok
+ exit 0
else
echo File test.fish failed tests
+ exit 1
end;
-
- exit
end
echo Testing high level script functionality