Bug 3841 - testParser(frysk.gui.test.TestParser)junit.framework.AssertionFailedError: testing source file existence
Summary: testParser(frysk.gui.test.TestParser)junit.framework.AssertionFailedError: te...
Status: NEW
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Unassigned
Depends on:
Blocks: 2243 3392
  Show dependency treegraph
Reported: 2007-01-07 04:27 UTC by Andrew Cagney
Modified: 2008-10-21 21:40 UTC (History)
0 users

See Also:
Last reconfirmed:


Note You need to log in before you can comment on or make changes to this bug.
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

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

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

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