summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2006-09-12 13:09:38 +0000
committerSimon Josefsson <simon@josefsson.org>2006-09-12 13:09:38 +0000
commitba75867707bf6c22e5abb58464d352b1f8523d07 (patch)
treed644cbe995ab0987f6687b0fd11cb3439c2dd8f8
parent4b71e74cd65a831a14e5331957f2e94ccfb6e63e (diff)
downloadgnutls-ba75867707bf6c22e5abb58464d352b1f8523d07.tar.gz
Fix exit code.
-rwxr-xr-xtests/pkcs1-pad14
1 files changed, 9 insertions, 5 deletions
diff --git a/tests/pkcs1-pad b/tests/pkcs1-pad
index e051489e5e..44bbc83ca8 100755
--- a/tests/pkcs1-pad
+++ b/tests/pkcs1-pad
@@ -41,10 +41,12 @@ echo out1 oks $out1oks fails $out1fails out2 oks $out2oks fails $out2fails
if test "$out1oks$out2oks$out1fails$out2fails" != "$EXPECT1"; then
echo expected $EXPECT1
- echo "PKCS1-PAD FAIL"
-# exit 1
+ echo "PKCS1-PAD1 FAIL"
+ exit 1
fi
+echo "PKCS1-PAD1 OK"
+
# Test 2, Bleichenbacher's Crypto 06 rump session
$CERTTOOL --verify-chain --infile $srcdir/pkcs1-pad-ok2.pem | tee out1
@@ -61,9 +63,11 @@ echo out1 oks $out1oks fails $out1fails out2 oks $out2oks fails $out2fails
if test "$out1oks$out2oks$out1fails$out2fails" != "$EXPECT2"; then
echo expected $EXPECT2
- echo "PKCS1-PAD FAIL"
-# exit 1
+ echo "PKCS1-PAD2 FAIL"
+ exit 1
fi
-echo "PKCS1-PAD OK"
+echo "PKCS1-PAD2 OK"
+
+# We're done.
exit 0