diff options
author | ngie <ngie@FreeBSD.org> | 2014-10-24 16:07:31 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2014-10-24 16:07:31 +0000 |
commit | d67cf8ed8d27ee5c1aa61d6ab1bc126a808e756c (patch) | |
tree | da9ca27dee824288e680370a7e7d043ace692bcb /contrib/netbsd-tests | |
parent | d2d2282d511ac122f9c4d00e75714e86dbdd4790 (diff) | |
download | FreeBSD-src-d67cf8ed8d27ee5c1aa61d6ab1bc126a808e756c.zip FreeBSD-src-d67cf8ed8d27ee5c1aa61d6ab1bc126a808e756c.tar.gz |
Correct my previous commit:
- getrusage_utime_back succeeds reliably on FreeBSD
- getrusage_utime_zero passes/fails in a seemingly non-deterministic manner.
Skip it for now (and fix it later)
In the initial port of this testcase to FreeBSD, the results failed reliably
in the same manner as it does on NetBSD
Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'contrib/netbsd-tests')
-rw-r--r-- | contrib/netbsd-tests/lib/libc/sys/t_getrusage.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/contrib/netbsd-tests/lib/libc/sys/t_getrusage.c b/contrib/netbsd-tests/lib/libc/sys/t_getrusage.c index 4d8b010..669c704 100644 --- a/contrib/netbsd-tests/lib/libc/sys/t_getrusage.c +++ b/contrib/netbsd-tests/lib/libc/sys/t_getrusage.c @@ -133,7 +133,9 @@ ATF_TC_BODY(getrusage_utime_back, tc) /* * Test that two consecutive calls are sane. */ +#ifdef __NetBSD__ atf_tc_expect_fail("PR kern/30115"); +#endif for (i = 0; i < maxiter; i++) { @@ -152,7 +154,9 @@ ATF_TC_BODY(getrusage_utime_back, tc) atf_tc_fail("user time went backwards"); } +#ifdef __NetBSD__ atf_tc_fail("anticipated error did not occur"); +#endif } ATF_TC(getrusage_utime_zero); @@ -166,15 +170,18 @@ ATF_TC_BODY(getrusage_utime_zero, tc) struct rusage ru; size_t i; +#ifdef __FreeBSD__ + atf_tc_skip("this testcase passes/fails sporadically on FreeBSD/i386 " + "@ r273153 (at least)"); +#endif + /* * Test that getrusage(2) does not return * zero user time for the calling process. * * See also (duplicate) PR port-amd64/41734. */ -#if defined(__NetBSD__) atf_tc_expect_fail("PR kern/30115"); -#endif for (i = 0; i < maxiter; i++) { @@ -188,9 +195,7 @@ ATF_TC_BODY(getrusage_utime_zero, tc) atf_tc_fail("zero user time from getrusage(2)"); } -#if defined(__NetBSD__) atf_tc_fail("anticipated error did not occur"); -#endif } ATF_TP_ADD_TCS(tp) |