Source-Changes-HG archive

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

[src/trunk]: src/tests/lib/libc/sys Use WIFCONTINUED.



details:   https://anonhg.NetBSD.org/src/rev/9bd60922d983
branches:  trunk
changeset: 814737:9bd60922d983
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Apr 06 03:52:27 2016 +0000

description:
Use WIFCONTINUED.

diffstat:

 tests/lib/libc/sys/t_wait.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 38f06781d2f5 -r 9bd60922d983 tests/lib/libc/sys/t_wait.c
--- a/tests/lib/libc/sys/t_wait.c       Wed Apr 06 03:51:26 2016 +0000
+++ b/tests/lib/libc/sys/t_wait.c       Wed Apr 06 03:52:27 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_wait.c,v 1.2 2016/04/06 00:52:45 christos Exp $ */
+/* $NetBSD: t_wait.c,v 1.3 2016/04/06 03:52:27 christos Exp $ */
 
 /*-
  * Copyright (c) 2016 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: t_wait.c,v 1.2 2016/04/06 00:52:45 christos Exp $");
+__RCSID("$NetBSD: t_wait.c,v 1.3 2016/04/06 03:52:27 christos Exp $");
 
 #include <sys/wait.h>
 #include <sys/resource.h>
@@ -214,7 +214,7 @@
 
                ATF_REQUIRE(kill(pid, SIGCONT) == 0);
                ATF_REQUIRE(!wait6(P_PID, pid, &st, WCONTINUED, &wru, &si)); 
-               ATF_REQUIRE(WIFSTOPPED(st) && WSTOPSIG(st) == SIGCONT);
+               ATF_REQUIRE(WIFCONTINUED(st));
                ATF_REQUIRE(si.si_status == SIGCONT);
                ATF_REQUIRE(si.si_pid == pid);
                ATF_REQUIRE(si.si_uid == getuid());



Home | Main Index | Thread Index | Old Index