* libjava.verify/verify.exp (gcj_verify_list_tests): Only change
directory if new directory exists.
From-SVN: r69590
+2003-07-19 Tom Tromey <tromey@redhat.com>
+
+ * libjava.verify/verify.exp (gcj_verify_list_tests): Only change
+ directory if new directory exists.
+
2003-07-13 Tom Tromey <tromey@redhat.com>
* libjava.verify/verify.exp: Fixed variable init.
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
}