Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/crypto/opencrypto For the skipped ARC4 test, don't bot...



details:   https://anonhg.NetBSD.org/src/rev/644309a9499f
branches:  trunk
changeset: 812655:644309a9499f
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Sat Dec 26 07:10:03 2015 +0000

description:
For the skipped ARC4 test, don't bother trying to run the test clean-up
code.  It runs rump.halt which returns an error status (since rump was
never started in the first place), and this causes atf to complain about
the cleanup routine's return status, logging the test as a failure!

diffstat:

 tests/crypto/opencrypto/t_opencrypto.sh |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (22 lines):

diff -r dbbf85667796 -r 644309a9499f tests/crypto/opencrypto/t_opencrypto.sh
--- a/tests/crypto/opencrypto/t_opencrypto.sh   Sat Dec 26 01:18:25 2015 +0000
+++ b/tests/crypto/opencrypto/t_opencrypto.sh   Sat Dec 26 07:10:03 2015 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: t_opencrypto.sh,v 1.5 2015/03/16 16:42:27 prlw1 Exp $
+#      $NetBSD: t_opencrypto.sh,v 1.6 2015/12/26 07:10:03 pgoyette Exp $
 #
 # Copyright (c) 2014 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -80,7 +80,11 @@
 }
 
 arc4_cleanup() {
-       common_cleanup
+       # No cleanup required since test is skipped.  Trying to run rump.halt
+       # at this point fails, causing the ATF environment to erroneously
+       # report a failed test!
+       #
+       # common_cleanup
 }
 
 atf_test_case camellia cleanup



Home | Main Index | Thread Index | Old Index