db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dag H. Wanvik" <Dag.Wan...@Sun.COM>
Subject Re: derbytools/dblook_test fails
Date Mon, 09 May 2005 13:04:03 GMT

Hi,

BMJ> > > *** Start: dblook_test jdk1.4.2_02 derbyall:derbytools 2005-05-06 22:37:37
***
BMJ> > > 4861d4860
BMJ> > > < java.io.FileNotFoundException: <filePath>
BMJ> > > Test Failed.
BMJ> > > *** End:   dblook_test jdk1.4.2_02 derbyall:derbytools 2005-05-06 22:37:53
***

I had this same problem and debugged it. The problem lies with the sed
functionality in the test harness, which delete certain lines before
comparing with the master file.

Sed.java in harness removes lines containing *derby/* in the path,
viz:

 	deleteLines.addElement("^.*derby/.*\\<.*\\>\\(.*\\).*$");	
 	deleteLines.addElement("^.*derby/.*\\(.*\\).*$");	

so if your tests are running in a directory containing this pattern, a
line too much is deleted from dblook_test.tmp, thereby giving a
comparison failure like you describe.

I don't know the reason for this deletion yet, so I can't say how to
fix it, but the work-around is obvious: Run test in a directory whose
name does not contain this pattern ;-)

I will file a JIRA issue for this.

Dag


>>>>> "BMJ" == Bernt M Johnsen <Bernt.Johnsen@Sun.COM> skriver:
BMJ> 
BMJ> Hi Myrna & thanks for your answer.
BMJ> >>>>>>>>>>>> Myrna van Lunteren wrote (2005-05-08
17:12:58):
BMJ> > Hi Bernt,
BMJ> > 
BMJ> > Yes, derbyall suite should pass...
BMJ> > 
BMJ> > Whenever there's a test failure in the full suite, step 1 is to run
BMJ> > the test by itself.
BMJ> > Does that fail too?
BMJ> 
BMJ> Yes. I've done that.
BMJ> 
BMJ> > 
BMJ> > I synced up (revision 126411) & built & the test ran fine...by
BMJ> > itself...(RunTest).
BMJ> > 
BMJ> > It's a little hard to advise you, I'd need some more info; e.g. is
BMJ> > derbytools.jar in your classpath? or are you using the 'classes'
BMJ> > directory?
BMJ> 
BMJ> derbytools.jar is in my classpth and I don't use the classes directory.
BMJ> 
BMJ> > If you are using the jars & you built them yourself, maybe indeed a
BMJ> > class or file is missing? assuming you built by using the 'all' and
BMJ> > then the 'buildjars' target...
BMJ> > I'm really curious as to which file is not getting found.
BMJ> 
BMJ> Well, actually it is the other way round: The master is like this
BMJ> (last 8 lines):
BMJ> 
BMJ> Msg Test 5
BMJ> ************
BMJ> File dblook.log was NOT empty.  Contents are:
BMJ> ############## Begin File Contents ################
BMJ> -- **--> DEBUG: Failed to load jar file <jarFilePath>
BMJ> java.io.FileNotFoundException: <filePath>
BMJ> ############## End File Contents ################
BMJ> [ Done. ]
BMJ> 
BMJ> while my result is:
BMJ> 
BMJ> Msg Test 5
BMJ> ************
BMJ> File dblook.log was NOT empty.  Contents are:
BMJ> ############## Begin File Contents ################
BMJ> -- **--> DEBUG: Failed to load jar file <jarFilePath>
BMJ> ############## End File Contents ################
BMJ> [ Done. ]
BMJ> 
BMJ> 
BMJ> > 
BMJ> > Myrna
BMJ> > 
BMJ> > 
BMJ> > On 5/7/05, Bernt M. Johnsen <Bernt.Johnsen@sun.com> wrote:
BMJ> > > I get,
BMJ> > > 
BMJ> > > *** Start: dblook_test jdk1.4.2_02 derbyall:derbytools 2005-05-06 22:37:37
***
BMJ> > > 4861d4860
BMJ> > > < java.io.FileNotFoundException: <filePath>
BMJ> > > Test Failed.
BMJ> > > *** End:   dblook_test jdk1.4.2_02 derbyall:derbytools 2005-05-06 22:37:53
***
BMJ> > > 
BMJ> > > which does not seem to have any connection to what I have
BMJ> > > changed. Anyone who can comment on it? I assume the derbyall suite is
BMJ> > > expected to pass without failures, is that correct?
BMJ> > > 
BMJ> > > Thanks,
BMJ> > > Bernt
BMJ> > > --
BMJ> > > Bernt Marius Johnsen, Database Technology Group, Sun Microsystems, Norway
BMJ> > >
BMJ> 
BMJ> -- 
BMJ> Bernt Marius Johnsen, Database Technology Group, 
BMJ> Sun Microsystems, Trondheim, Norway
BMJ> 
-- 
Dag H. Wanvik
Sun Microsystems, Web Services, Database Technology Group
Haakon VII gt. 7b, N-7485 Trondheim, Norway
Tel: x43496/+47 73842196, Fax:  +47 73842101

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
NOTICE: This email message is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or distribution
is prohibited. If you are not the intended recipient, please contact
the sender by reply email and destroy all copies of the original
message.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 

Mime
View raw message