CVSROOT: /sources/m4 Module name: m4 Changes by: Eric Blake <ericb> 06/10/06 18:24:32
Index: tests/builtins.at =================================================================== RCS file: /sources/m4/m4/tests/builtins.at,v retrieving revision 1.21 retrieving revision 1.22 diff -u -b -r1.21 -r1.22 --- tests/builtins.at 5 Oct 2006 23:07:28 -0000 1.21 +++ tests/builtins.at 6 Oct 2006 18:24:31 -0000 1.22 @@ -152,9 +152,10 @@ divert`'esyscmd(`echo hi >&3') hello ]]) -AT_CHECK_M4([3>&-], [0], [[hello +AT_CHECK_M4([3>&-], [0], [stdout], [experr], [in.m4]) +AT_CHECK([sed -ne '/./p' stdout], [0], [[hello world -]], [experr], [in.m4 | sed -ne '/./p']) +]]) dnl Ensure that esyscmd does not inherit any unnecessary fds from input files. AT_DATA([in.m4], [[hello esyscmd(`cat <&3')dnl @@ -644,9 +645,10 @@ divert`'syscmd(`echo hi >&3') hello ]]) -AT_CHECK_M4([3>&-], [0], [[hello +AT_CHECK_M4([3>&-], [0], [stdout], [experr], [in.m4]) +AT_CHECK([sed -ne '/./p' stdout], [0], [[hello world -]], [experr], [in.m4 | sed -ne '/./p']) +]]) dnl Ensure that syscmd does not inherit any unnecessary fds from input files. AT_DATA([in.m4], [[hello syscmd(`cat <&3')dnl