Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/libc/atomic Revert previous hack.
details: https://anonhg.NetBSD.org/src/rev/ecb594469e7c
branches: trunk
changeset: 997251:ecb594469e7c
user: isaki <isaki%NetBSD.org@localhost>
date: Fri Mar 01 05:39:01 2019 +0000
description:
Revert previous hack.
Now all libc have __sync_and_and_fetch functions.
diffstat:
tests/lib/libc/atomic/t___sync_and.c | 10 ++--------
1 files changed, 2 insertions(+), 8 deletions(-)
diffs (52 lines):
diff -r 43367c6bd4e9 -r ecb594469e7c tests/lib/libc/atomic/t___sync_and.c
--- a/tests/lib/libc/atomic/t___sync_and.c Fri Mar 01 05:23:35 2019 +0000
+++ b/tests/lib/libc/atomic/t___sync_and.c Fri Mar 01 05:39:01 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t___sync_and.c,v 1.2 2019/02/27 15:32:11 christos Exp $ */
+/* $NetBSD: t___sync_and.c,v 1.3 2019/03/01 05:39:01 isaki Exp $ */
/*
* Copyright (C) 2019 Tetsuya Isaki. All rights reserved.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t___sync_and.c,v 1.2 2019/02/27 15:32:11 christos Exp $");
+__RCSID("$NetBSD: t___sync_and.c,v 1.3 2019/03/01 05:39:01 isaki Exp $");
#include <atf-c.h>
#include <inttypes.h>
@@ -54,7 +54,6 @@
{ \
atf_tc_set_md_var(tc, "descr", #NAME); \
} \
-extern TYPE NAME(volatile TYPE *, TYPE) __attribute__((__weak__)); \
ATF_TC_BODY(NAME, tc) \
{ \
volatile TYPE val; \
@@ -66,8 +65,6 @@
src = (TYPE)SRC; \
expval = (TYPE)EXPECT; \
expres = (TYPE)DST; \
- if (NAME == NULL) \
- return; \
res = NAME(&val, src); \
ATF_REQUIRE_MSG(val == expval, \
"val expects 0x%" FMT " but 0x%" FMT, expval, val); \
@@ -88,7 +85,6 @@
{ \
atf_tc_set_md_var(tc, "descr", #NAME); \
} \
-extern TYPE NAME(volatile TYPE *, TYPE) __attribute__((__weak__)); \
ATF_TC_BODY(NAME, tc) \
{ \
volatile TYPE val; \
@@ -98,8 +94,6 @@
val = (TYPE)DST; \
src = (TYPE)SRC; \
exp = (TYPE)EXPECT; \
- if (NAME == NULL) \
- return; \
res = NAME(&val, src); \
ATF_REQUIRE_MSG(val == exp, \
"val expects 0x%" FMT " but 0x%" FMT, exp, val); \
Home |
Main Index |
Thread Index |
Old Index