Bug 5658 - frysk.hpd.TestSysRoot doesn't tearDown()
Summary: frysk.hpd.TestSysRoot doesn't tearDown()
Status: RESOLVED FIXED
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Stan Cox
URL:
Keywords:
Depends on:
Blocks: 5624
  Show dependency treegraph
 
Reported: 2008-01-22 03:50 UTC by Andrew Cagney
Modified: 2008-01-30 15:08 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 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.