diff options
author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-07-19 15:43:20 +0000 |
---|---|---|
committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-07-19 15:43:20 +0000 |
commit | 10a02841235ea209a9006ec6c8c1287a6d721ad7 (patch) | |
tree | bbc934d5dcdd139f56663f3b4ec6f283f27e3b23 /libjava/testsuite/libjava.verify | |
parent | f0af5a8826645f54448b3b82f1ab364bd8952562 (diff) | |
download | gcc-10a02841235ea209a9006ec6c8c1287a6d721ad7.tar.gz |
* libjava.verify/verify.exp (gcj_verify_list_tests): Only change
directory if new directory exists.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69590 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/testsuite/libjava.verify')
-rw-r--r-- | libjava/testsuite/libjava.verify/verify.exp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/libjava/testsuite/libjava.verify/verify.exp b/libjava/testsuite/libjava.verify/verify.exp index 456f3b66230..76c9b00d4bf 100644 --- a/libjava/testsuite/libjava.verify/verify.exp +++ b/libjava/testsuite/libjava.verify/verify.exp @@ -11,12 +11,14 @@ set {gcj_verify_xfail(gij verify of subr.fail.jsr8)} 1 proc gcj_verify_list_tests {srcdir} { set result {} - set here [pwd] - cd $srcdir - foreach item [lsort [glob -nocomplain */*/*.class]] { - lappend result [file rootname $item] + if {[file exists $srcdir]} { + set here [pwd] + cd $srcdir + foreach item [lsort [glob -nocomplain */*/*.class]] { + lappend result [file rootname $item] + } + cd $here } - cd $here return $result } |