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 PR 56313: fix eroneous = that was meant t...



details:   https://anonhg.NetBSD.org/src/rev/8e2a63298ac8
branches:  trunk
changeset: 1022423:8e2a63298ac8
user:      martin <martin%NetBSD.org@localhost>
date:      Sat Jul 17 14:03:35 2021 +0000

description:
PR 56313: fix eroneous = that was meant to be ==

diffstat:

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

diffs (27 lines):

diff -r 057a549961ac -r 8e2a63298ac8 tests/lib/libc/sys/t_wait.c
--- a/tests/lib/libc/sys/t_wait.c       Sat Jul 17 11:32:50 2021 +0000
+++ b/tests/lib/libc/sys/t_wait.c       Sat Jul 17 14:03:35 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_wait.c,v 1.9 2019/02/04 09:35:11 mrg Exp $ */
+/* $NetBSD: t_wait.c,v 1.10 2021/07/17 14:03:35 martin 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.9 2019/02/04 09:35:11 mrg Exp $");
+__RCSID("$NetBSD: t_wait.c,v 1.10 2021/07/17 14:03:35 martin Exp $");
 
 #include <sys/wait.h>
 #include <sys/resource.h>
@@ -85,7 +85,7 @@
        default:
                ATF_REQUIRE(wait6(P_PID, pid, &st, WEXITED, &wru, &si) == pid);
                ATF_REQUIRE(WIFEXITED(st) && WEXITSTATUS(st) == 0x5a);
-               ATF_REQUIRE(si.si_status = 0x5a5a5a5a);
+               ATF_REQUIRE(si.si_status == 0x5a5a5a5a);
                ATF_REQUIRE(si.si_pid == pid);
                ATF_REQUIRE(si.si_uid == getuid());
                ATF_REQUIRE(si.si_code == CLD_EXITED);



Home | Main Index | Thread Index | Old Index