aboutsummaryrefslogtreecommitdiff
path: root/conform
diff options
context:
space:
mode:
authorAdhemerval Zanella <azanella@linux.vnet.ibm.com>2014-03-18 08:54:04 -0500
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>2014-03-18 13:55:48 -0500
commitaebe10032963f5424498752732e316ff3438a8f3 (patch)
tree0334c97f2e1c57e58729e46e5c639d517ebd4a15 /conform
parentb29b6bb8fedf573ffe73147a07c851c1b6135adc (diff)
downloadglibc-aebe10032963f5424498752732e316ff3438a8f3.zip
glibc-aebe10032963f5424498752732e316ff3438a8f3.tar.gz
glibc-aebe10032963f5424498752732e316ff3438a8f3.tar.bz2
Add stardard definition on conform processing
This patch adds the -std=c99 option when preprocessing the data files from the conform testcases. It fixes an issue where the compiler may split the 'macro bool' defition from stdbool.h-data in two lines and thus breaking the conform script.
Diffstat (limited to 'conform')
-rw-r--r--conform/conformtest.pl3
1 files changed, 1 insertions, 2 deletions
diff --git a/conform/conformtest.pl b/conform/conformtest.pl
index 085fbb8..c8c1d2a 100644
--- a/conform/conformtest.pl
+++ b/conform/conformtest.pl
@@ -264,7 +264,6 @@ sub checknamespace {
close (TESTFILE);
undef %errors;
- $nknown = 0;
open (CONTENT, "$CC $CFLAGS_namespace -E $fnamebase.c -P -Wp,-dN | sed -e '/^# [1-9]/d' -e '/^[[:space:]]*\$/d' |");
loop: while (<CONTENT>) {
chop;
@@ -324,7 +323,7 @@ while ($#headers >= 0) {
printf ("Testing <$h>\n");
printf ("----------" . "-" x length ($h) . "\n");
- open (CONTROL, "$CC -E -D$standard -x c data/$h-data |");
+ open (CONTROL, "$CC -E -D$standard -std=c99 -x c data/$h-data |");
control: while (<CONTROL>) {
chop;
next control if (/^#/);