diff options
Diffstat (limited to 'src/scalarproduct/test_scalarproduct_negative.sh')
-rwxr-xr-x | src/scalarproduct/test_scalarproduct_negative.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scalarproduct/test_scalarproduct_negative.sh b/src/scalarproduct/test_scalarproduct_negative.sh index cbeb1b9fd..b08e4527f 100755 --- a/src/scalarproduct/test_scalarproduct_negative.sh +++ b/src/scalarproduct/test_scalarproduct_negative.sh | |||
@@ -11,7 +11,7 @@ PREFIX=/tmp/test-scalarproduct`date +%H%M%S` | |||
11 | CFGALICE="-c $PREFIX/0/config" | 11 | CFGALICE="-c $PREFIX/0/config" |
12 | CFGBOB="-c $PREFIX/1/config" | 12 | CFGBOB="-c $PREFIX/1/config" |
13 | 13 | ||
14 | which timeout &> /dev/null && DO_TIMEOUT="timeout 15" | 14 | which timeout >/dev/null 2>&1 && DO_TIMEOUT="timeout 15" |
15 | 15 | ||
16 | # launch two peers in line topology non-interactively | 16 | # launch two peers in line topology non-interactively |
17 | # | 17 | # |
@@ -36,7 +36,7 @@ RESULT=`${DO_TIMEOUT} gnunet-scalarproduct $CFGALICE $INPUTALICE -p $PEERIDBOB` | |||
36 | kill $PID | 36 | kill $PID |
37 | 37 | ||
38 | EXPECTED="-0CCC" | 38 | EXPECTED="-0CCC" |
39 | if [ "$RESULT" == "$EXPECTED" ] | 39 | if [ "$RESULT" = "$EXPECTED" ] |
40 | then | 40 | then |
41 | echo "OK" | 41 | echo "OK" |
42 | exit 0 | 42 | exit 0 |