diff options
author | Tom Tromey <tromey@redhat.com> | 2003-07-19 15:43:20 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2003-07-19 15:43:20 +0000 |
commit | 01482e6dedf200137f9a7aa57d3c585bbc81b1c9 (patch) | |
tree | bbc934d5dcdd139f56663f3b4ec6f283f27e3b23 /libjava/testsuite/libjava.verify | |
parent | 703ad42b4be14b9b1e84816dede360721361ed86 (diff) | |
download | gcc-01482e6dedf200137f9a7aa57d3c585bbc81b1c9.zip gcc-01482e6dedf200137f9a7aa57d3c585bbc81b1c9.tar.gz gcc-01482e6dedf200137f9a7aa57d3c585bbc81b1c9.tar.bz2 |
verify.exp (gcj_verify_list_tests): Only change directory if new directory exists.
* libjava.verify/verify.exp (gcj_verify_list_tests): Only change
directory if new directory exists.
From-SVN: r69590
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 456f3b6..76c9b00 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 } |