Redirect stderr in RunGrepTest instead of appending to testtrygrep from two
different file descriptors, because the latter doesn't always work as expected.
This commit is contained in:
parent
8f1727af98
commit
0448b486e9
|
@ -93,6 +93,10 @@ Solaris and MacOS as printf and sed can't handle them. It seems that the *BSD
|
||||||
systems can't either. I've inverted the test so that only those OS that are
|
systems can't either. I've inverted the test so that only those OS that are
|
||||||
known to work (currently only Linux) try to run this test.
|
known to work (currently only Linux) try to run this test.
|
||||||
|
|
||||||
|
24. Some tests in RunGrepTest appended to testtrygrep from two different file
|
||||||
|
descriptors instead of redirecting stderr to stdout. This worked on Linux, but
|
||||||
|
it was reported not to on other systems, causing the tests to fail.
|
||||||
|
|
||||||
|
|
||||||
Version 10.32 10-September-2018
|
Version 10.32 10-September-2018
|
||||||
-------------------------------
|
-------------------------------
|
||||||
|
|
|
@ -170,11 +170,11 @@ echo "---------------------------- Test 14 -----------------------------" >>test
|
||||||
echo "RC=$?" >>testtrygrep
|
echo "RC=$?" >>testtrygrep
|
||||||
|
|
||||||
echo "---------------------------- Test 15 -----------------------------" >>testtrygrep
|
echo "---------------------------- Test 15 -----------------------------" >>testtrygrep
|
||||||
(cd $srcdir; $valgrind $vjs $pcre2grep 'abc^*' ./testdata/grepinput) 2>>testtrygrep >>testtrygrep
|
(cd $srcdir; $valgrind $vjs $pcre2grep 'abc^*' ./testdata/grepinput) >>testtrygrep 2>&1
|
||||||
echo "RC=$?" >>testtrygrep
|
echo "RC=$?" >>testtrygrep
|
||||||
|
|
||||||
echo "---------------------------- Test 16 -----------------------------" >>testtrygrep
|
echo "---------------------------- Test 16 -----------------------------" >>testtrygrep
|
||||||
(cd $srcdir; $valgrind $vjs $pcre2grep abc ./testdata/grepinput ./testdata/nonexistfile) 2>>testtrygrep >>testtrygrep
|
(cd $srcdir; $valgrind $vjs $pcre2grep abc ./testdata/grepinput ./testdata/nonexistfile) >>testtrygrep 2>&1
|
||||||
echo "RC=$?" >>testtrygrep
|
echo "RC=$?" >>testtrygrep
|
||||||
|
|
||||||
echo "---------------------------- Test 17 -----------------------------" >>testtrygrep
|
echo "---------------------------- Test 17 -----------------------------" >>testtrygrep
|
||||||
|
@ -296,7 +296,7 @@ echo "---------------------------- Test 45 ------------------------------" >>tes
|
||||||
echo "RC=$?" >>testtrygrep
|
echo "RC=$?" >>testtrygrep
|
||||||
|
|
||||||
echo "---------------------------- Test 46 ------------------------------" >>testtrygrep
|
echo "---------------------------- Test 46 ------------------------------" >>testtrygrep
|
||||||
(cd $srcdir; $valgrind $vjs $pcre2grep -eabc -e '(unclosed' ./testdata/grepinput) 2>>testtrygrep >>testtrygrep
|
(cd $srcdir; $valgrind $vjs $pcre2grep -eabc -e '(unclosed' ./testdata/grepinput) >>testtrygrep 2>&1
|
||||||
echo "RC=$?" >>testtrygrep
|
echo "RC=$?" >>testtrygrep
|
||||||
|
|
||||||
echo "---------------------------- Test 47 ------------------------------" >>testtrygrep
|
echo "---------------------------- Test 47 ------------------------------" >>testtrygrep
|
||||||
|
|
Loading…
Reference in New Issue