Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/libc/tls make tests print the values.
details: https://anonhg.NetBSD.org/src/rev/7b8c47c1bc7c
branches: trunk
changeset: 827446:7b8c47c1bc7c
user: christos <christos%NetBSD.org@localhost>
date: Sat Oct 28 19:24:55 2017 +0000
description:
make tests print the values.
diffstat:
tests/lib/libc/tls/t_tls_static.c | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
diffs (36 lines):
diff -r d5c6fa2c4df9 -r 7b8c47c1bc7c tests/lib/libc/tls/t_tls_static.c
--- a/tests/lib/libc/tls/t_tls_static.c Sat Oct 28 19:19:10 2017 +0000
+++ b/tests/lib/libc/tls/t_tls_static.c Sat Oct 28 19:24:55 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_tls_static.c,v 1.2 2012/01/17 20:34:57 joerg Exp $ */
+/* $NetBSD: t_tls_static.c,v 1.3 2017/10/28 19:24:55 christos Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_tls_static.c,v 1.2 2012/01/17 20:34:57 joerg Exp $");
+__RCSID("$NetBSD: t_tls_static.c,v 1.3 2017/10/28 19:24:55 christos Exp $");
#include <atf-c.h>
#include <pthread.h>
@@ -59,11 +59,13 @@
static void *
testf(void *dummy)
{
- ATF_CHECK_EQ(var1, 1);
- ATF_CHECK_EQ(var2, 0);
+#define CHECK(a, b) \
+ ATF_CHECK_EQ_MSG(var ## a, b, "var%d[%d] != %d", a, var ## a, b)
+ CHECK(1, 1);
+ CHECK(1, 0);
testf_helper();
- ATF_CHECK_EQ(var1, -1);
- ATF_CHECK_EQ(var2, -1);
+ CHECK(1, -1);
+ CHECK(2, -1);
return NULL;
}
Home |
Main Index |
Thread Index |
Old Index