Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/dev/sysmon The sh api calls it atf_expect_fail, while ...
details: https://anonhg.NetBSD.org/src/rev/98f9b831b91b
branches: trunk
changeset: 786083:98f9b831b91b
user: martin <martin%NetBSD.org@localhost>
date: Sun Apr 14 16:07:46 2013 +0000
description:
The sh api calls it atf_expect_fail, while the c api calls it
atf_tc_expect_fail - this is shell, so fix the names accordingly.
XXX Why do they differ?
diffstat:
tests/dev/sysmon/t_swsensor.sh | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (43 lines):
diff -r 09668e08748d -r 98f9b831b91b tests/dev/sysmon/t_swsensor.sh
--- a/tests/dev/sysmon/t_swsensor.sh Sun Apr 14 16:03:06 2013 +0000
+++ b/tests/dev/sysmon/t_swsensor.sh Sun Apr 14 16:07:46 2013 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: t_swsensor.sh,v 1.6 2013/03/17 06:29:55 jmmv Exp $
+# $NetBSD: t_swsensor.sh,v 1.7 2013/04/14 16:07:46 martin Exp $
get_sensor_info() {
rump.envstat -x | \
@@ -290,14 +290,14 @@
sleep 5
new_rnd_bits=$( get_rnd_bits_count )
if [ $new_rnd_bits -le $rnd_bits ] ; then
- atf_tc_expect_fail "PR kern/47661"
+ atf_expect_fail "PR kern/47661"
atf_fail "14a: entropy bits did not increase after polling"
fi
rnd_bits=$new_rnd_bits
sleep 5
new_rnd_bits=$( get_rnd_bits_count )
if [ $new_rnd_bits -gt $rnd_bits ] ; then
- atf_tc_expect_fail "PR kern/47661"
+ atf_expect_fail "PR kern/47661"
atf_fail "14b: entropy bits increased after poll with no value change"
fi
@@ -311,14 +311,14 @@
get_sensor_key cur-value
new_rnd_bits=$( get_rnd_bits_count )
if [ $new_rnd_bits -le $rnd_bits ] ; then
- atf_tc_expect_fail "PR kern/47661"
+ atf_expect_fail "PR kern/47661"
atf_fail "15a: entropy bits did not increase after interrogation"
fi
rnd_bits=$new_rnd_bits
get_sensor_key cur-value
new_rnd_bits=$( get_rnd_bits_count )
if [ $new_rnd_bits -gt $rnd_bits ] ; then
- atf_tc_expect_fail "PR kern/47661"
+ atf_expect_fail "PR kern/47661"
atf_fail "15b: entropy bits increased after interrogation with no value change"
fi
}
Home |
Main Index |
Thread Index |
Old Index