summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2016-12-28 09:04:59 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2016-12-31 13:33:21 +0100
commit2ee60ff9f149c847b84532595bd38098ef456818 (patch)
tree56217065e37481e8da6acb646e1c52d198ebda2d /tests
parent6b1c11273f048530216d47f88d0adf2b68aec486 (diff)
downloadgnutls-2ee60ff9f149c847b84532595bd38098ef456818.tar.gz
tests: better termination checking in compat tests
This ensures that the exit code of all spawned processes is checked.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/suite/testcompat-main-openssl17
-rwxr-xr-xtests/suite/testcompat-main-polarssl8
2 files changed, 22 insertions, 3 deletions
diff --git a/tests/suite/testcompat-main-openssl b/tests/suite/testcompat-main-openssl
index a4921696b9..7ce77a27d6 100755
--- a/tests/suite/testcompat-main-openssl
+++ b/tests/suite/testcompat-main-openssl
@@ -409,10 +409,16 @@ run_client_suite() {
fi
}
+WAITPID=""
for mod in "" ":%COMPAT" ":%NO_ETM"; do #":%NO_TICKETS" ":%DISABLE_SAFE_RENEGOTIATION"
run_client_suite $mod &
+ WAITPID="$WAITPID $!"
+done
+
+for i in "$WAITPID";do
+ wait $i
+ test $? != 0 && exit 1
done
-wait
echo "${PREFIX}Client mode tests were successfully completed"
echo "${PREFIX}"
@@ -778,9 +784,16 @@ run_server_suite() {
kill ${PID}
wait
}
+
+WAITPID=""
for mod in "" ":%COMPAT" ":%NO_ETM" ":%NO_TICKETS" ":%DISABLE_SAFE_RENEGOTIATION"; do
run_server_suite $mod &
+ WAITPID="$WAITPID $!"
+done
+
+for i in "$WAITPID";do
+ wait $i
+ test $? != 0 && exit 1
done
-wait
exit 0
diff --git a/tests/suite/testcompat-main-polarssl b/tests/suite/testcompat-main-polarssl
index f1d76d05dc..da0b1d2d43 100755
--- a/tests/suite/testcompat-main-polarssl
+++ b/tests/suite/testcompat-main-polarssl
@@ -428,10 +428,16 @@ run_server_suite() {
wait
}
+WAITPID=""
for mod in "" ":%COMPAT" ":%NO_ETM"; do #":%NO_TICKETS" ":%DISABLE_SAFE_RENEGOTIATION"
run_server_suite $mod &
+ WAITPID="$WAITPID $!"
+done
+
+for i in "$WAITPID";do
+ wait $i
+ test $? != 0 && exit 1
done
-wait
rm -f "${LOGFILE}"