Bug 3841

Summary: testParser(frysk.gui.test.TestParser)junit.framework.AssertionFailedError: testing source file existence
Product: frysk Reporter: Andrew Cagney <cagney>
Component: generalAssignee: Unassigned <frysk-bugzilla>
Status: NEW ---    
Severity: normal    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Bug Depends on:    
Bug Blocks: 2243, 3392    

Description Andrew Cagney 2007-01-07 04:27:13 UTC
1) testParser(frysk.gui.test.TestParser)junit.framework.AssertionFailedError:
testing source file existence
   at frysk.gui.test.TestParser.testParser(TestRunner)
   at frysk.junit.Runner.runCases(TestRunner)
   at frysk.junit.Runner.runArchCases(TestRunner)
   at frysk.junit.Runner.runTestCases(TestRunner)
   at TestRunner.main(TestRunner)
Comment 1 Andrew Cagney 2007-01-09 12:10:04 UTC
WIP:

At present one problem is, for build-tree testing, the program looks in the
BUILDTREE, while the file is still in the source tree.  Need to change things so
that the file is copied to the build tree.  frysk-imports is already doing it
for a couple of .bz2.uu files but the logic is hard wired, should also generate it.

Index: frysk-core/frysk/dom/ChangeLog
2007-01-09  Andrew Cagney  <cagney@redhat.com>

        * TestParser.java (NEWDOM, tearDown, tmpFile, testParser): Replace
        NEWDOM - the generated DOM's output - with a temporary file,
        delete during tearDown.
        (exec_path, BASEDOM, installed_list, includepaths, sourcelist)
        (root, data, dom, IMAGE_FILENAME, CC_FILE, which_file)
        (testParser): Re-implement testParser using List instead of
        array's, and Paths.getExecPrefix and Paths.getDataPrefix instead
        of Build.SRCDIR, Build.ABS_SRCDIR, and hardwired install paths.
        (checkPath, assertDomMatchesBase): Replace checkPath with
        assertDomMatchesBase.

Index: frysk-core/frysk/pkgdatadir/ChangeLog
2007-01-09  Andrew Cagney  <cagney@redhat.com>

        * test_main_looper.c: Delete, moved to frysk/pkglibdir/.

Index: frysk-core/frysk/pkglibdir/ChangeLog
2007-01-09  Andrew Cagney  <cagney@redhat.com>

        * test_main_looper.c: New, copied from frysk/pkgdatadir/.
Comment 2 Phil Muldoon 2007-10-10 17:28:59 UTC
Going through fcore blockers, and I found this. Is this fixed now?
Comment 3 Mark Wielaard 2008-04-17 18:05:32 UTC
(In reply to comment #2)
> Going through fcore blockers, and I found this. Is this fixed now?

No, this is still broken (when enabling the test):

testParser(frysk.dom.TestParser)java.io.FileNotFoundException:
/home/mark/src/frysk-obj/frysk-core/frysk/pkgdatadir/test_looper.xml (No such
file or directory)
   at gnu.java.nio.channels.FileChannelImpl.open(libgcj.so.8rh)
   at gnu.java.nio.channels.FileChannelImpl.<init>(libgcj.so.8rh)
   at gnu.java.nio.channels.FileChannelImpl.create(libgcj.so.8rh)
   at java.io.FileInputStream.<init>(libgcj.so.8rh)
   at frysk.dom.TestParser.assertDomMatchesBase(TestRunner)
   at frysk.dom.TestParser.testParser(TestRunner)
   at frysk.junit.Runner.runCases(TestRunner)
   at frysk.junit.Runner.runTestCases(TestRunner)
   at TestRunner.main(TestRunner)