[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
tests: shorten the generated file
From: |
Akim Demaille |
Subject: |
tests: shorten the generated file |
Date: |
Mon, 28 Sep 2020 19:25:00 +0200 |
Many useless lines of comments were pasted many times.
commit 15cf0095d3d1123e85d9e651014fe6fb5d3d0df2
Author: Akim Demaille <akim.demaille@gmail.com>
Date: Sun Sep 27 15:48:32 2020 +0200
tests: shorten the generated file
* tests/synclines.at (_AT_SYNCLINES_COMPILE): Pull the comments out.
diff --git a/tests/synclines.at b/tests/synclines.at
index e3401025..7a4de5db 100644
--- a/tests/synclines.at
+++ b/tests/synclines.at
@@ -25,9 +25,7 @@ AT_BANNER([[Sync Lines.]])
# normalized output. Ignore the exit status, since some compilers
# (e.g. c89 on IRIX 6.5) trigger warnings on '#error', instead of
# errors.
-m4_define([_AT_SYNCLINES_COMPILE],
-[AT_CHECK([$CC $CFLAGS $CPPFLAGS -c $1], [ignore], [], [stderr])
-
+#
# Transform the file 'stderr' into something like this:
#
# input.y:4: #error "4"
@@ -97,6 +95,8 @@ m4_define([_AT_SYNCLINES_COMPILE],
# syncline.c:4:2: error: #error "4"
# 4 | #error "4"
# | ^~~~~
+m4_define([_AT_SYNCLINES_COMPILE],
+[AT_CHECK([$CC $CFLAGS $CPPFLAGS -c $1], [ignore], [], [stderr])
AT_CHECK([["$PERL" -p -0777 - stderr <<\EOF || exit 77
# Remove left-hand margin.
s/^[\d ]{6}\| //gm;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- tests: shorten the generated file,
Akim Demaille <=