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:
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() {
|
||||
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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue