This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Weird New libjava Testsuite Failure (PR java/14104)


 > > Andrew Haley writes:
 > >  > Ranjit Mathew writes:
 > >  >  > 
 > >  >  > Any insights into the problem or at least how to
 > >  >  > try to reproduce it reliably?
 > >  > 
 > >  > I'll have a look.
 > > 
 > > Okay, so it's even weirder than I thought.  If I rename libjava.jar to
 > > libjava.0jar in order to make it run first in the testsuite, it
 > > doesn't fail either!
 > > 
 > > We have a real Heisenbug here...
 > 
 > Oh yes - and it does not seem dependent on the order
 > either - if I rename "libjava.jar" to say "libjava.jacks123"
 > so that it is still executed in the same order, it doesn't
 > fail - however, if I rename it back to "libjava.jar", it
 > duly fails! I am able to consistently reproduce this
 > over several runs. What the...

Okay, I've found the problem.  It's because there is a file called
libjava.jar in libajava/testsuite.  Unfortunately, that file is a
directory.  :-)

Looks like we don't check that a file really is a file before opening it.

Andrew.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]