Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/libc/gen Don't include the siginfo tests unless we...
details: https://anonhg.NetBSD.org/src/rev/03aa682c7457
branches: trunk
changeset: 760047:03aa682c7457
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Sat Dec 25 01:22:02 2010 +0000
description:
Don't include the siginfo tests unless we actually have siginfo ability!
diffstat:
tests/lib/libc/gen/Makefile | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diffs (24 lines):
diff -r 366d50576ee9 -r 03aa682c7457 tests/lib/libc/gen/Makefile
--- a/tests/lib/libc/gen/Makefile Sat Dec 25 01:20:11 2010 +0000
+++ b/tests/lib/libc/gen/Makefile Sat Dec 25 01:22:02 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2010/12/25 01:04:26 pgoyette Exp $
+# $NetBSD: Makefile,v 1.5 2010/12/25 01:22:02 pgoyette Exp $
.include <bsd.own.mk>
@@ -9,6 +9,14 @@
TESTS_C+= t_basedirname
TESTS_C+= t_siginfo
+.if !make(obj) && !make(cleandir)
+HAVE_SIGINFO != if (echo "\#include <signal.h>" && echo "SA_SIGINFO") | ${CC} -E -I${DESTDIR}/usr/include - | grep -sq 0x0040; then echo yes; else echo no; fi
+.endif
+
+.if make(obj) || make(cleandir) || (${HAVE_SIGINFO} == "yes")
+TESTS_C+= t_siginfo
+.endif
+
LDADD.t_syslog_pthread+=-lpthread
.include <bsd.test.mk>
Home |
Main Index |
Thread Index |
Old Index