db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dag H. Wanvik (JIRA)" <derby-...@db.apache.org>
Subject [jira] Created: (DERBY-266) test tools/dblook_test.java fails if run in a directory having "*derby/*" in its path
Date Mon, 09 May 2005 14:37:05 GMT
test tools/dblook_test.java fails if run in a directory having "*derby/*" in its path

         Key: DERBY-266
         URL: http://issues.apache.org/jira/browse/DERBY-266
     Project: Derby
        Type: Bug
  Components: Test  
    Reporter: Dag H. Wanvik
    Priority: Minor

SYMPTOM: The test "tools/dblook_test" will fail. The diff looks similar to this:

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

cf mail thread:

ANALYSIS: The problem lies with the sed
functionality in the test harness, which delete certain lines before
comparing with the master file.

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


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 ;-)

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message