diff options
| author | kamil <kamil@NetBSD.org> | 2018-05-18 00:25:30 +0000 |
|---|---|---|
| committer | kamil <kamil@NetBSD.org> | 2018-05-18 00:25:30 +0000 |
| commit | be670ad89e7eee08fe2b164e9428a013a6f2a60b (patch) | |
| tree | 0ac9c7d8ebc3fcf7c363a7b64e72510a0df16b6e /tests/kernel | |
| parent | 9d5f17a657ee32148672b71302f89c604da49909 (diff) | |
Correct assert in ATF t_zombie test
A failure is reported with -1, not 1.
Sponsored by <The NetBSD Foundation>
Diffstat (limited to 'tests/kernel')
| -rw-r--r-- | tests/kernel/t_zombie.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/kernel/t_zombie.c b/tests/kernel/t_zombie.c index ca0ceca7907..ced9e120445 100644 --- a/tests/kernel/t_zombie.c +++ b/tests/kernel/t_zombie.c @@ -1,4 +1,4 @@ -/* $NetBSD: t_zombie.c,v 1.1 2018/03/14 02:13:47 kamil Exp $ */ +/* $NetBSD: t_zombie.c,v 1.2 2018/05/18 00:25:30 kamil Exp $ */ /*- * Copyright (c) 2018 The NetBSD Foundation, Inc. @@ -29,7 +29,7 @@ #include <sys/cdefs.h> __COPYRIGHT("@(#) Copyright (c) 2018\ The NetBSD Foundation, inc. All rights reserved."); -__RCSID("$NetBSD: t_zombie.c,v 1.1 2018/03/14 02:13:47 kamil Exp $"); +__RCSID("$NetBSD: t_zombie.c,v 1.2 2018/05/18 00:25:30 kamil Exp $"); #include <sys/types.h> #include <sys/sysctl.h> @@ -130,14 +130,14 @@ signal_raw(int sig) pid_t child1, child2, pid; child1 = atf_utils_fork(); - ATF_REQUIRE(child1 != 1); + ATF_REQUIRE(child1 != -1); if (child1 == 0) { /* Just die and turn into a zombie */ _exit(0); } child2 = atf_utils_fork(); - ATF_REQUIRE(child2 != 1); + ATF_REQUIRE(child2 != -1); if (child2 == 0) { await_zombie(child1); |
