summaryrefslogtreecommitdiff
path: root/gl/tests
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2009-08-15 09:58:09 +0200
committerSimon Josefsson <simon@josefsson.org>2009-08-15 09:58:09 +0200
commitb5157c8944c1d999a45e4177ebcc52b9feea088f (patch)
treeb03af6d0c4e8b931c57cccc737cc056ac11b5116 /gl/tests
parent331dc98fc52955825a5bbc91b2cc4c24e97c8e8b (diff)
downloadgnutls-b5157c8944c1d999a45e4177ebcc52b9feea088f.tar.gz
Update gnulib files.
Diffstat (limited to 'gl/tests')
-rw-r--r--gl/tests/Makefile.am9
-rw-r--r--gl/tests/test-stdio.c2
-rw-r--r--gl/tests/test-stdlib.c2
-rw-r--r--gl/tests/test-string.c2
-rw-r--r--gl/tests/test-unistd.c2
-rw-r--r--gl/tests/test-wchar.c8
6 files changed, 20 insertions, 5 deletions
diff --git a/gl/tests/Makefile.am b/gl/tests/Makefile.am
index 4c3bcb5b9e..375c8bf7c6 100644
--- a/gl/tests/Makefile.am
+++ b/gl/tests/Makefile.am
@@ -244,6 +244,15 @@ EXTRA_DIST += test-stdbool.c
## end gnulib module stdbool-tests
+## begin gnulib module stddef-tests
+
+TESTS += test-stddef
+check_PROGRAMS += test-stddef
+
+EXTRA_DIST += test-stddef.c
+
+## end gnulib module stddef-tests
+
## begin gnulib module stdint-tests
TESTS += test-stdint
diff --git a/gl/tests/test-stdio.c b/gl/tests/test-stdio.c
index 41299e2159..dcfe38dd51 100644
--- a/gl/tests/test-stdio.c
+++ b/gl/tests/test-stdio.c
@@ -27,7 +27,7 @@ int sk[] = { SEEK_CUR, SEEK_END, SEEK_SET };
/* Check that NULL can be passed through varargs as a pointer type,
per POSIX 2008. */
-verify (sizeof (NULL) == sizeof (void *));
+verify (sizeof NULL == sizeof (void *));
int
main ()
diff --git a/gl/tests/test-stdlib.c b/gl/tests/test-stdlib.c
index 711cfa6315..ae46ba1662 100644
--- a/gl/tests/test-stdlib.c
+++ b/gl/tests/test-stdlib.c
@@ -26,7 +26,7 @@ int exitcode;
/* Check that NULL can be passed through varargs as a pointer type,
per POSIX 2008. */
-verify (sizeof (NULL) == sizeof (void *));
+verify (sizeof NULL == sizeof (void *));
int
main ()
diff --git a/gl/tests/test-string.c b/gl/tests/test-string.c
index 688d0d31c3..fe53cd9b15 100644
--- a/gl/tests/test-string.c
+++ b/gl/tests/test-string.c
@@ -24,7 +24,7 @@
/* Check that NULL can be passed through varargs as a pointer type,
per POSIX 2008. */
-verify (sizeof (NULL) == sizeof (void *));
+verify (sizeof NULL == sizeof (void *));
int
main ()
diff --git a/gl/tests/test-unistd.c b/gl/tests/test-unistd.c
index e0b82918a9..129367b4d7 100644
--- a/gl/tests/test-unistd.c
+++ b/gl/tests/test-unistd.c
@@ -24,7 +24,7 @@
/* Check that NULL can be passed through varargs as a pointer type,
per POSIX 2008. */
-verify (sizeof (NULL) == sizeof (void *));
+verify (sizeof NULL == sizeof (void *));
/* Check that the various SEEK_* macros are defined. */
int sk[] = { SEEK_CUR, SEEK_END, SEEK_SET };
diff --git a/gl/tests/test-wchar.c b/gl/tests/test-wchar.c
index 19da7d93c0..28660688d2 100644
--- a/gl/tests/test-wchar.c
+++ b/gl/tests/test-wchar.c
@@ -1,5 +1,5 @@
/* Test of <wchar.h> substitute.
- Copyright (C) 2007-2008 Free Software Foundation, Inc.
+ Copyright (C) 2007-2009 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -20,10 +20,16 @@
#include <wchar.h>
+#include "verify.h"
+
/* Check that the types wchar_t and wint_t are defined. */
wchar_t a = 'c';
wint_t b = 'x';
+/* Check that NULL can be passed through varargs as a pointer type,
+ per POSIX 2008. */
+verify (sizeof NULL == sizeof (void *));
+
int
main ()
{