[pcre-dev] [PATCH] Fix for RunGrepTest test 35

Page principale
Supprimer ce message
Auteur: Daniel Richard G
Date:  
À: pcre-dev
Sujet: [pcre-dev] [PATCH] Fix for RunGrepTest test 35
The attached patch addresses the test failure quoted below, which appears
to be the result of differing directory ordering.

(Note that all other instances of "pcregrep -L -r" in RunGrepTest already
include a sort(1) invocation.)

Testing pcregrep version 8.32-RC1 2012-08-08
Testing pcregrep main features
--- /afs/teragram.com/user/dgomez/prog/pcre/testdata/grepoutput    2012-08-19 00:12:38.000000002 -0400
+++ testtry    2012-09-06 17:45:10.000000000 -0400
@@ -371,8 +371,8 @@
  ---------------------------- Test 34 -----------------------------
  RC=2
  ---------------------------- Test 35 -----------------------------
-./testdata/grepinput8
  ./testdata/grepinputx
+./testdata/grepinput8
  RC=0
  ---------------------------- Test 36 -----------------------------
  ./testdata/grepinput3
FAIL: RunGrepTest
===================
1 of 3 tests failed
===================
make[2]: *** [check-TESTS] Error 1



--Daniel


--
Daniel Richard G. || danielg@??? || Software Developer
Teragram Linguistic Technologies (a division of SAS)
http://www.teragram.com/Index: RunGrepTest
===================================================================
--- RunGrepTest    (revision 1028)
+++ RunGrepTest    (working copy)
@@ -207,7 +207,7 @@
 echo "RC=$?" >>testtry
 
 echo "---------------------------- Test 35 -----------------------------" >>testtry
-(cd $srcdir; $valgrind $pcregrep -L -r --include=grepinputx --include grepinput8 --exclude-dir='^\.' 'fox' ./testdata) >>testtry
+(cd $srcdir; $valgrind $pcregrep -L -r --include=grepinputx --include grepinput8 --exclude-dir='^\.' 'fox' ./testdata | sort) >>testtry
 echo "RC=$?" >>testtry
 
 echo "---------------------------- Test 36 -----------------------------" >>testtry