]> Nishi Git Mirror - gwion.git/commitdiff
:art: TEst errored func
authorfennecdjay <astor.jeremie@wanadoo.fr>
Fri, 11 Oct 2019 13:01:25 +0000 (15:01 +0200)
committerfennecdjay <astor.jeremie@wanadoo.fr>
Fri, 11 Oct 2019 13:01:25 +0000 (15:01 +0200)
tests/sh/opt.sh

index 66ecc6953b3bce418ccd5c0f9eb49854998dd20d..241e14c0565f644b3aa1b656d302b6f5b234c62b 100644 (file)
@@ -1,5 +1,5 @@
 #!/bin/bash
-# [test] #19
+# [test] #20
 
 n=0
 [ "$1" ] && n="$1"
@@ -85,6 +85,10 @@ run "$n" "option needs argument" "-p" "file"
 n=$((n+1))
 run "$n" "invalid global type" "examples/complex/invalid_type0.gw examples/complex/invalid_type1.gw" "file"
 
+# invalid global func
+n=$((n+1))
+run "$n" "invalid global func" "examples/complex/invalid_func0.gw examples/complex/invalid_func1.gw" "file"
+
 # test signal
 ./gwion -l1 &
 PID=$!