61 |
[script.4s:2: warning: bar |
[script.4s:2: warning: bar |
62 |
]) |
]) |
63 |
|
|
64 |
AT_CHECK_M4SUGAR([-o- -Wnone,bar,error -f], 1, [], [stderr]) |
AT_CHECK_M4SUGAR([-o- -Wnone,bar,error -f], 1, [], |
|
# The error message contains the path to m4, which might change. |
|
|
AT_CHECK([sed 's/^autom4te.*failed/autom4te: m4 failed/' stderr], 0, |
|
65 |
[[script.4s:2: error: bar |
[[script.4s:2: error: bar |
66 |
script.4s:2: the top level |
script.4s:2: the top level |
67 |
autom4te: m4 failed with exit status: 1 |
autom4te: m4 failed with exit status: 1 |
94 |
baz |
baz |
95 |
]]) |
]]) |
96 |
|
|
97 |
# Expected stderr. |
AT_CHECK_M4SUGAR([], 1, [], |
98 |
AT_DATA_M4SUGAR([expout], |
[[script.4s:11: error: m4@&t@_require: circular dependency of foo |
|
[[script.4s:11: error: m4_require: circular dependency of foo |
|
99 |
script.4s:11: foo is required by... |
script.4s:11: foo is required by... |
100 |
script.4s:5: bar is expanded from... |
script.4s:5: bar is expanded from... |
101 |
script.4s:11: bar is required by... |
script.4s:11: bar is required by... |
105 |
script.4s:11: the top level |
script.4s:11: the top level |
106 |
autom4te: m4 failed with exit status: 1 |
autom4te: m4 failed with exit status: 1 |
107 |
]]) |
]]) |
|
|
|
|
AT_CHECK_M4SUGAR([], 1, [], stderr) |
|
|
# The error message contains the path to m4, which might change. |
|
|
AT_CHECK([sed 's/^autom4te.*failed/autom4te: m4 failed/' stderr], 0, [expout]) |
|
108 |
AT_CLEANUP |
AT_CLEANUP |
109 |
|
|
110 |
|
|