Bug 3657

Summary: testGetModules(lib.dw.tests.TestDwfl)junit.framework.AssertionFailedError
Product: frysk Reporter: Andrew Cagney <cagney>
Component: generalAssignee: Andrew Cagney <cagney>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Bug Depends on:    
Bug Blocks: 3385, 2654    

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.