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 Fix a bug in the futex_wake_highest_pri t...



details:   https://anonhg.NetBSD.org/src/rev/e915d4f9763c
branches:  trunk
changeset: 932378:e915d4f9763c
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Wed May 06 05:14:27 2020 +0000

description:
Fix a bug in the futex_wake_highest_pri test case.  Still fails as
expected.

diffstat:

 tests/lib/libc/sys/t_futex_ops.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r 53ab8bcd7a2e -r e915d4f9763c tests/lib/libc/sys/t_futex_ops.c
--- a/tests/lib/libc/sys/t_futex_ops.c  Wed May 06 02:30:10 2020 +0000
+++ b/tests/lib/libc/sys/t_futex_ops.c  Wed May 06 05:14:27 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_futex_ops.c,v 1.4 2020/05/04 15:09:34 thorpej Exp $ */
+/* $NetBSD: t_futex_ops.c,v 1.5 2020/05/06 05:14:27 thorpej Exp $ */
 
 /*-
  * Copyright (c) 2019, 2020 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
 #include <sys/cdefs.h>
 __COPYRIGHT("@(#) Copyright (c) 2019, 2020\
  The NetBSD Foundation, inc. All rights reserved.");
-__RCSID("$NetBSD: t_futex_ops.c,v 1.4 2020/05/04 15:09:34 thorpej Exp $");
+__RCSID("$NetBSD: t_futex_ops.c,v 1.5 2020/05/06 05:14:27 thorpej Exp $");
 
 #include <sys/fcntl.h>
 #include <sys/mman.h>
@@ -1416,8 +1416,8 @@
        lwp_data[1].block_val = 0;
        lwp_data[1].bitset = 0;
        lwp_data[1].wait_op = FUTEX_WAIT;
-       ATF_REQUIRE(_lwp_create(&lwp_data[0].context, 0,
-                               &lwp_data[0].lwpid) == 0);
+       ATF_REQUIRE(_lwp_create(&lwp_data[1].context, 0,
+                               &lwp_data[1].lwpid) == 0);
 
        for (tries = 0; tries < 5; tries++) {
                membar_sync();



Home | Main Index | Thread Index | Old Index