Bug 6046

Summary: test reading shared libraries from sysroots
Product: frysk Reporter: Andrew Cagney <cagney>
Component: generalAssignee: Stan Cox <scox>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Bug Depends on:    
Bug Blocks: 5624    

Description Andrew Cagney 2008-04-08 01:57:15 UTC
There's no test for checking that a sysrooted program loads shared libraries
from the sysroot.

-	requestCreateAttachedProc(new File(template.getExeFile().getSysRootedPath()),
+	SysRootFile sysRootFile = template.getExeFile();
+	requestCreateAttachedProc(new File(sysRootFile.getSysRootedPath()),
 				  null, null, null,
 				  template.getCmdLine(),
+				  new SysRoot(sysRootFile.getSysRoot()).getLibPathViaSysRoot(),
 				  attachedObserver);
     }
Comment 1 Stan Cox 2008-04-09 02:44:44 UTC
Changed frysk.hpd.TestSysRoot to also be a shared library test.

* Makefile.am (frysk/pkglibdir/funit-addresses-stripped): Remove.
(frysk/pkglibdir/test-sysroot): New.
(frysk/pkglibdir/arch32/funit-addresses-stripped): Remove.
(frysk/pkglibdir/arch32/test-sysroot): New.
* TestSysRoot.java (testHaveSysRoot): Use funit-quicksort instead of
funit-addresses.