diff options
author | Ben Elliston <bje@gnu.org> | 2003-12-03 04:23:53 +0000 |
---|---|---|
committer | Ben Elliston <bje@gnu.org> | 2003-12-03 04:23:53 +0000 |
commit | 6bf589f80a7fde9183832fca55e813aee223c315 (patch) | |
tree | ac78883d1817efe0bd6e878f62894426c1c30e4b | |
parent | cf2d01729acba50af40bdb2b679a560517f8c380 (diff) | |
download | dejagnu-6bf589f80a7fde9183832fca55e813aee223c315.zip dejagnu-6bf589f80a7fde9183832fca55e813aee223c315.tar.gz dejagnu-6bf589f80a7fde9183832fca55e813aee223c315.tar.bz2 |
* testsuite/runtest.all/utils.test: Fix a test for proc find which
assumed that "subsubfile1" would appear at the end of the returned
list. Adjust to use a more robust regular expression.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | testsuite/runtest.all/utils.test | 13 |
2 files changed, 7 insertions, 12 deletions
@@ -1,3 +1,9 @@ +2003-12-03 Ben Elliston <bje@wasabisystems.com> + + * testsuite/runtest.all/utils.test: Fix a test for proc find which + assumed that "subsubfile1" would appear at the end of the returned + list. Adjust to use a more robust regular expression. + 2003-11-26 Ben Elliston <bje@wasabisystems.com> * doc/overview.sgml (version): Update. diff --git a/testsuite/runtest.all/utils.test b/testsuite/runtest.all/utils.test index ee08306..c85d69d 100644 --- a/testsuite/runtest.all/utils.test +++ b/testsuite/runtest.all/utils.test @@ -50,10 +50,7 @@ if [string match "*/subdir2/subfile2" "[find ${srcdir}/runtest.all/topdir/subdir puts "FAILED: find, only one level deep" } -#set path ${srcdir}/runtest.all/topdir/subdir1 -#exp_test "find ${path} sub*" "Adding */subdir1/subsubdir1/subsubfile1" "find, two levels deep" - -if [string match "*/subdir1/subsubdir1/subsubfile1" "[find ${srcdir}/runtest.all/topdir/subdir1 sub*]"] { +if [regexp ".*/subdir1/subsubdir1/subsubfile1( |$)" "[find ${srcdir}/runtest.all/topdir/subdir1 sub*]"] { puts "PASSED: find, two levels deep" } else { puts "FAILED: find, two levels deep" @@ -108,11 +105,3 @@ if [info exists env(TESTRUN)] { # absolute path # psource file # diff file_1 file_2 - - - - - - - - |