Bug 3657 - testGetModules(lib.dw.tests.TestDwfl)junit.framework.AssertionFailedError
Summary: testGetModules(lib.dw.tests.TestDwfl)junit.framework.AssertionFailedError
Status: RESOLVED FIXED
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Andrew Cagney
URL:
Keywords:
Depends on:
Blocks: 3385 2654
  Show dependency treegraph
 
Reported: 2006-12-05 15:42 UTC by Andrew Cagney
Modified: 2006-12-14 20:48 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Cagney 2006-12-05 15:42:19 UTC
When installed:

testGetModules(lib.dw.tests.TestDwfl)junit.framework.AssertionFailedError
   at lib.dw.tests.TestDwfl.testGetModules(funit)
   at frysk.junit.Runner.runCases(funit)
   at frysk.junit.Runner.runArchCases(funit)
   at frysk.junit.Runner.runArchCases(funit)
   at funit.main(funit)
Comment 1 Chris Moller 2006-12-05 18:19:55 UTC
Works when run from the build tree.
Comment 2 Andrew Cagney 2006-12-14 19:08:52 UTC
    for (int i = 0; i < modules.length; i++)
      {
        String modName = modules[i].getName();
        if (modName.lastIndexOf("TestRunner") >= 0)
          foundTestRunner = true;
        else if (modName.lastIndexOf("libc") >= 0)
          foundlibc = true;
        else if (modName.lastIndexOf("libgcj") >= 0)
          foundlibgcj = true;
      }
Comment 3 Andrew Cagney 2006-12-14 20:27:43 UTC
Index: frysk-imports/frysk/junit/ChangeLog
2006-12-14  Andrew Cagney  <cagney@redhat.com>

        * Runner.java: Call Paths.setMyBasename.
        * Paths.java (Paths): New private constructor.
        (runnerBasename, setRunnerBasename, getRunnerBasename): New.

Index: frysk-imports/lib/dw/ChangeLog
2006-12-14  Andrew Cagney  <cagney@redhat.com>

        * tests/TestDwfl.java: Use frysk .junit .Paths .getRunnerBasename.
Comment 4 Andrew Cagney 2006-12-14 20:48:20 UTC
Tested on toadstool; generic bug.