Patch: FYI: test suite fixlet
Tom Tromey
tromey@redhat.com
Sat Jul 19 17:53:00 GMT 2003
I'm checking this in on the trunk.
This lets "make check" work if the "verify" directory is missing.
Tom
Index: ChangeLog
from Tom Tromey <tromey@redhat.com>
* libjava.verify/verify.exp (gcj_verify_list_tests): Only change
directory if new directory exists.
Index: libjava.verify/verify.exp
===================================================================
RCS file: /cvs/gcc/gcc/libjava/testsuite/libjava.verify/verify.exp,v
retrieving revision 1.2
diff -u -r1.2 verify.exp
--- libjava.verify/verify.exp 13 Jul 2003 23:33:02 -0000 1.2
+++ libjava.verify/verify.exp 19 Jul 2003 15:41:51 -0000
@@ -11,12 +11,14 @@
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
}
More information about the Java-patches
mailing list