Browse code

the 2nd clamd process might already be gone, wait returns 127. This fixed a silent make check failure on NetBSD.

git-svn: trunk@4279

Török Edvin authored on 2008/10/19 21:35:13
Showing 2 changed files
... ...
@@ -1,3 +1,9 @@
1
+Sun Oct 19 15:58:23 EEST 2008 (edwin)
2
+-------------------------------------
3
+ * unit_tests/check_clamd.sh: the 2nd clamd process might already be
4
+ gone, wait returns 127.  This fixed a silent make check failure on
5
+ NetBSD.
6
+
1 7
 Sun Oct 19 14:57:26 EEST 2008 (edwin)
2 8
 -------------------------------------
3 9
  * unit_tests/duma_tests.sh, unit_tests/efence_tests.sh: locate
... ...
@@ -222,7 +222,7 @@ exitcode1=$?
222 222
 wait $pid2
223 223
 exitcode2=$?
224 224
 rm -rf clamdtest$CLAMD_TEST_UNIQ1 clamdtest$CLAMD_TEST_UNIQ2 test-db
225
-if test $exitcode1 -ne 0 || test $exitcode2 -ne 0; then
225
+if (test $exitcode1 -ne 0 && test $exitcode1 -ne 127) || (test $exitcode2 -ne 0	&& test $exitcode2 -ne 127); then
226 226
 	exit 1
227 227
 fi
228 228
 exit 0