Bug 5658

Summary: frysk.hpd.TestSysRoot doesn't tearDown()
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-01-22 03:50:14 UTC
The class instead provides an empty tearDown method - which means that none of
the processes created are destroyed if things fail.

Looking at the code:

    public void testHaveSysRoot() {
	if (unresolved(5657))
	    return;
	File testSysRootDir = Config.getPkgDataFile("test-sysroot");
	File testPath = Config.getPkgLibFile("funit-addresses");
	child = new Expect(new String[] {
		Config.getBinFile("fhpd").getAbsolutePath(),
		"-sysroot", testSysRootDir.getAbsolutePath(),
	        testSysRootDir.getAbsolutePath() + "/" + testPath
	    });

perhaps HpdTestbed can to be extended to better support this, or knowing this is
special, more closely follow what start does.
Comment 1 Stan Cox 2008-01-30 15:08:27 UTC
Move installation of test-sysroot to pkglibdir.

* TestSysRoot.java (testHaveSysRoot): test-sysroot now lives in
pkglibdir.  Use sendCommandExpectPrompt.