Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/libc/gen/exect Restrict atf_tc_expect_fail(PR port...
details: https://anonhg.NetBSD.org/src/rev/000574b82c98
branches: trunk
changeset: 349386:000574b82c98
user: kamil <kamil%NetBSD.org@localhost>
date: Fri Dec 09 08:34:37 2016 +0000
description:
Restrict atf_tc_expect_fail(PR port-amd64/51700) only for amd64 (x86_64)
Other ports than amd64 have their own issues, mostly keeping this call as
unimplemented.
While there cast sig_atomic_t to int in the printf(3)-like call -- pointed
out by <martin>
Sponsored by <The NetBSD Foundation>
diffstat:
tests/lib/libc/gen/exect/t_exect.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (31 lines):
diff -r c3d34d13ee1d -r 000574b82c98 tests/lib/libc/gen/exect/t_exect.c
--- a/tests/lib/libc/gen/exect/t_exect.c Fri Dec 09 06:47:48 2016 +0000
+++ b/tests/lib/libc/gen/exect/t_exect.c Fri Dec 09 08:34:37 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_exect.c,v 1.3 2016/12/09 06:47:48 kamil Exp $ */
+/* $NetBSD: t_exect.c,v 1.4 2016/12/09 08:34:37 kamil Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -57,10 +57,12 @@
{
struct sigaction act;
+#if defined(__x86_64__)
/*
* exect(NULL,NULL,NULL) generates 15859 times SIGTRAP on amd64
*/
atf_tc_expect_fail("PR port-amd64/51700");
+#endif
ATF_REQUIRE(sigemptyset(&act.sa_mask) == 0);
act.sa_sigaction = sigtrap_handler;
@@ -71,7 +73,7 @@
ATF_REQUIRE_ERRNO(EFAULT, exect(NULL, NULL, NULL) == -1);
ATF_REQUIRE_EQ_MSG(caught, 1, "expected caught (1) != received (%d)",
- caught);
+ (int)caught);
}
ATF_TP_ADD_TCS(tp)
Home |
Main Index |
Thread Index |
Old Index