From 2b499fb26d2d4c649b4c6730b44caa8f603e6102 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Fri, 11 Oct 2019 15:01:25 +0200 Subject: [PATCH] :art: TEst errored func --- tests/sh/opt.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/sh/opt.sh b/tests/sh/opt.sh index 66ecc695..241e14c0 100644 --- a/tests/sh/opt.sh +++ b/tests/sh/opt.sh @@ -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=$! -- 2.43.0