m4-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Changes to m4/tests/modules.at,v


From: Eric Blake
Subject: Changes to m4/tests/modules.at,v
Date: Thu, 14 Sep 2006 03:37:48 +0000

CVSROOT:        /sources/m4
Module name:    m4
Changes by:     Eric Blake <ericb>      06/09/14 03:37:48

Index: tests/modules.at
===================================================================
RCS file: /sources/m4/m4/tests/modules.at,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -b -r1.21 -r1.22
--- tests/modules.at    14 Sep 2006 00:37:26 -0000      1.21
+++ tests/modules.at    14 Sep 2006 03:37:48 -0000      1.22
@@ -89,7 +89,13 @@
 Dumpdef: dumpdef(`test').
 ]])
 
-AT_CHECK([$2 m4 -m load -d $3 input.m4], [0],
+dnl Fortunately, all tests within AT_SETUP are in the same subshell, so
+dnl setting the environment now will impact the AT_CHECK_M4, but not
+dnl carry over to the next AT_SETUP.
+m4_ifval([$2], [$2
+export m4_substr([$2], [0], m4_index([$2], [=]))])
+
+AT_CHECK_M4([-m load $3 input.m4], [0],
 [[
 Test module called.
 Dumpdef: .




reply via email to

[Prev in Thread] Current Thread [Next in Thread]