1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-28 03:15:33 +02:00

[399140] add diagnostic failures to the shell tests

This commit is contained in:
David Dykstal 2013-01-25 17:43:28 -06:00
parent 6031b4ef20
commit 1562649aca

View file

@ -99,18 +99,18 @@ public class ShellServiceTest extends RSEBaseConnectionTestCase {
}
protected IShellServiceSubSystem getShellServiceSubSystem() {
if (fPropertiesFileName == null) {
return null;
}
IShellServiceSubSystem result = null;
assertNotNull("Properties file name was null.", fPropertiesFileName);
IHost host = getHost(fPropertiesFileName);
ISubSystem[] ss = RSECorePlugin.getTheSystemRegistry()
.getServiceSubSystems(host, IShellService.class);
ISubSystem[] ss = RSECorePlugin.getTheSystemRegistry().getServiceSubSystems(host, IShellService.class);
for (int i = 0; i < ss.length; i++) {
if (ss[i] instanceof ShellServiceSubSystem) {
return (ShellServiceSubSystem) ss[i];
result = (ShellServiceSubSystem) ss[i];
break;
}
}
return null;
assertNotNull(String.format("Shell service subsystem was not found for host %s.", host.getAliasName()), result);
return result;
}
public void setUp() throws Exception {