projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tests for module 'float'.
[gnulib.git]
/
tests
/
test-signal.c
diff --git
a/tests/test-signal.c
b/tests/test-signal.c
index
b0c11cf
..
7103e1f
100644
(file)
--- a/
tests/test-signal.c
+++ b/
tests/test-signal.c
@@
-1,5
+1,5
@@
/* Test of <signal.h> substitute.
/* Test of <signal.h> substitute.
- Copyright (C) 2009 Free Software Foundation, Inc.
+ Copyright (C) 2009
-2011
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
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
@@
-35,6
+35,9
@@
struct
#endif
} s;
#endif
} s;
+/* Check that NSIG is defined. */
+int nsig = NSIG;
+
int
main (void)
{
int
main (void)
{
@@
-56,7
+59,8
@@
main (void)
#ifdef SIGALRM
case SIGALRM:
#endif
#ifdef SIGALRM
case SIGALRM:
#endif
-#ifdef SIGBUS
+ /* On Haiku, SIGBUS is mistakenly equal to SIGSEGV. */
+#if defined SIGBUS && SIGBUS != SIGSEGV
case SIGBUS:
#endif
#ifdef SIGCHLD
case SIGBUS:
#endif
#ifdef SIGCHLD
@@
-110,9
+114,6
@@
main (void)
#ifdef SIGXFSZ
case SIGXFSZ:
#endif
#ifdef SIGXFSZ
case SIGXFSZ:
#endif
-#ifdef SIG
- case SIG:
-#endif
/* SIGRTMIN and SIGRTMAX need not be compile-time constants. */
#if 0
# ifdef SIGRTMIN
/* SIGRTMIN and SIGRTMAX need not be compile-time constants. */
#if 0
# ifdef SIGRTMIN