mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-01 13:25:45 +02:00
[399140] add diagnostic failures to the shell tests
This commit is contained in:
parent
6031b4ef20
commit
1562649aca
1 changed files with 7 additions and 7 deletions
|
@ -99,18 +99,18 @@ public class ShellServiceTest extends RSEBaseConnectionTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
protected IShellServiceSubSystem getShellServiceSubSystem() {
|
protected IShellServiceSubSystem getShellServiceSubSystem() {
|
||||||
if (fPropertiesFileName == null) {
|
IShellServiceSubSystem result = null;
|
||||||
return null;
|
assertNotNull("Properties file name was null.", fPropertiesFileName);
|
||||||
}
|
|
||||||
IHost host = getHost(fPropertiesFileName);
|
IHost host = getHost(fPropertiesFileName);
|
||||||
ISubSystem[] ss = RSECorePlugin.getTheSystemRegistry()
|
ISubSystem[] ss = RSECorePlugin.getTheSystemRegistry().getServiceSubSystems(host, IShellService.class);
|
||||||
.getServiceSubSystems(host, IShellService.class);
|
|
||||||
for (int i = 0; i < ss.length; i++) {
|
for (int i = 0; i < ss.length; i++) {
|
||||||
if (ss[i] instanceof ShellServiceSubSystem) {
|
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 {
|
public void setUp() throws Exception {
|
||||||
|
|
Loading…
Add table
Reference in a new issue