[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Fix specflags[78].test failure on Tru64 UNIX
From: |
Rainer Orth |
Subject: |
Fix specflags[78].test failure on Tru64 UNIX |
Date: |
Tue, 24 Sep 2002 22:35:04 +0200 (MEST) |
Testing current CVS automake on alpha-dec-osf4.0f revealed a couple of
testsuite failures. Two of them are for a trivial reason:
FAIL: specflags7.test
FAIL: specflags8.test
Both fail with false printing true ;-) This happens because the vendor
<sys/types.h> (included by <stdio.h>) defines TRUE.
The following patch fixes this.
Rainer
-----------------------------------------------------------------------------
Rainer Orth, Faculty of Technology, Bielefeld University
Tue Sep 24 21:07:44 2002 Rainer Orth <address@hidden>
* tests/specflags7.test (true_CFLAGS, false_CFLAGS, false.c): Use
AM_TRUE, AM_FALSE to avoid bad interaction with Tru64 UNIX
<sys/types.h>.
* tests/specflags8.test (true_CPPFLAGS, false_CPPFLAGS, false.c):
Likewise.
Index: tests/specflags7.test
===================================================================
RCS file: /cvs/automake/automake/tests/specflags7.test,v
retrieving revision 1.4
diff -u -p -r1.4 specflags7.test
--- tests/specflags7.test 13 Sep 2002 16:37:01 -0000 1.4
+++ tests/specflags7.test 24 Sep 2002 20:01:24 -0000
@@ -33,10 +33,10 @@ END
cat > Makefile.am << 'END'
bin_PROGRAMS = false true
true_SOURCES = false.c
-true_CFLAGS = -DTRUE
+true_CFLAGS = -DAM_TRUE
true_SHORTNAME = t
# No false_SOURCES definition. Use the default source.
-false_CFLAGS = -DFALSE
+false_CFLAGS = -DAM_FALSE
false_SHORTNAME = f
END
@@ -45,7 +45,7 @@ cat > false.c << 'END'
int
main (int argc, char *argv[])
{
-#ifdef TRUE
+#ifdef AM_TRUE
puts ("true");
#else
puts ("false");
Index: tests/specflags8.test
===================================================================
RCS file: /cvs/automake/automake/tests/specflags8.test,v
retrieving revision 1.7
diff -u -p -r1.7 specflags8.test
--- tests/specflags8.test 13 Sep 2002 16:37:01 -0000 1.7
+++ tests/specflags8.test 24 Sep 2002 20:01:24 -0000
@@ -40,9 +40,9 @@ cat > Makefile.am << 'END'
FALSESOURCE = false.c
bin_PROGRAMS = false true
true_SOURCES = $(FALSESOURCE)
-true_CPPFLAGS = -DTRUE
+true_CPPFLAGS = -DAM_TRUE
false_SOURCES = $(FALSESOURCE)
-false_CPPFLAGS = -DFALSE
+false_CPPFLAGS = -DAM_FALSE
END
cat > false.c << 'END'
@@ -50,7 +50,7 @@ cat > false.c << 'END'
int
main (int argc, char *argv[])
{
-#ifdef TRUE
+#ifdef AM_TRUE
puts ("true");
#else
puts ("false");
- Fix specflags[78].test failure on Tru64 UNIX,
Rainer Orth <=