mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-05 15:25:49 +02:00
[399140] add diagnostic console messages to the shell tests
This commit is contained in:
parent
1562649aca
commit
f730be5af5
1 changed files with 16 additions and 1 deletions
|
@ -102,7 +102,22 @@ public class ShellServiceTest extends RSEBaseConnectionTestCase {
|
||||||
IShellServiceSubSystem result = null;
|
IShellServiceSubSystem result = null;
|
||||||
assertNotNull("Properties file name was null.", fPropertiesFileName);
|
assertNotNull("Properties file name was null.", fPropertiesFileName);
|
||||||
IHost host = getHost(fPropertiesFileName);
|
IHost host = getHost(fPropertiesFileName);
|
||||||
ISubSystem[] ss = RSECorePlugin.getTheSystemRegistry().getServiceSubSystems(host, IShellService.class);
|
System.out.printf("\nconnection name = %s", host.getAliasName());
|
||||||
|
System.out.printf("\nsystem type id = %s", host.getSystemType().getId());
|
||||||
|
ISubSystem[] ss = host.getSubSystems();
|
||||||
|
System.out.printf("\nall subsystems found = %d", new Integer(ss.length));
|
||||||
|
for (int i = 0; i < ss.length; i++) {
|
||||||
|
ISubSystem subsystem = ss[i];
|
||||||
|
String id = subsystem.getConfigurationId();
|
||||||
|
System.out.printf("\nsubsystem id = %s", id);
|
||||||
|
}
|
||||||
|
ss = RSECorePlugin.getTheSystemRegistry().getServiceSubSystems(host, IShellService.class);
|
||||||
|
System.out.printf("\nshell service subsystems found = %d", new Integer(ss.length));
|
||||||
|
for (int i = 0; i < ss.length; i++) {
|
||||||
|
ISubSystem subsystem = ss[i];
|
||||||
|
String id = subsystem.getConfigurationId();
|
||||||
|
System.out.printf("\nsubsystem configuration id = %s", id);
|
||||||
|
}
|
||||||
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) {
|
||||||
result = (ShellServiceSubSystem) ss[i];
|
result = (ShellServiceSubSystem) ss[i];
|
||||||
|
|
Loading…
Add table
Reference in a new issue