[Pcre-svn] [1051] code/trunk: Redirect stderr in RunGrepTest…

Inizio della pagina
Delete this message
Autore: Subversion repository
Data:  
To: pcre-svn
Oggetto: [Pcre-svn] [1051] code/trunk: Redirect stderr in RunGrepTest instead of appending to testtrygrep from two
Revision: 1051
          http://www.exim.org/viewvc/pcre2?view=rev&revision=1051
Author:   ph10
Date:     2018-12-06 17:13:41 +0000 (Thu, 06 Dec 2018)
Log Message:
-----------
Redirect stderr in RunGrepTest instead of appending to testtrygrep from two 
different file descriptors, because the latter doesn't always work as expected.


Modified Paths:
--------------
    code/trunk/ChangeLog
    code/trunk/RunGrepTest


Modified: code/trunk/ChangeLog
===================================================================
--- code/trunk/ChangeLog    2018-12-06 17:05:06 UTC (rev 1050)
+++ code/trunk/ChangeLog    2018-12-06 17:13:41 UTC (rev 1051)
@@ -93,7 +93,11 @@
 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.


+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
-------------------------------


Modified: code/trunk/RunGrepTest
===================================================================
--- code/trunk/RunGrepTest    2018-12-06 17:05:06 UTC (rev 1050)
+++ code/trunk/RunGrepTest    2018-12-06 17:13:41 UTC (rev 1051)
@@ -170,11 +170,11 @@
 echo "RC=$?" >>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 "---------------------------- 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 "---------------------------- Test 17 -----------------------------" >>testtrygrep
@@ -296,7 +296,7 @@
echo "RC=$?" >>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 "---------------------------- Test 47 ------------------------------" >>testtrygrep