Browse code

Fix unit test script.

test_run always exits with 1 on success, so check its return code.

Török Edvin authored on 2010/03/24 23:41:29
Showing 1 changed files
... ...
@@ -1,5 +1,8 @@
1
-#!/bin/sh -x
1
+#!/bin/sh
2 2
 . $srcdir/check_common.sh
3 3
 init_valgrind
4
-CK_FORK=no WRAPPER="$VALGRIND $VALGRIND_FLAGS" test_run 0 $TOP/unit_tests/check_clamav
4
+export CK_FORK=no WRAPPER="$VALGRIND $VALGRIND_FLAGS" CK_DEFAULT_TIMEOUT=40
5
+if test_run 0 $TOP/unit_tests/check_clamav; then
6
+    echo "check_clamav failed to run" >&2
7
+fi
5 8
 end_valgrind