Commit 1e4b8dc0 authored by Adam Knapp's avatar Adam Knapp
Browse files

Improvements for compatibility with C side



Change-Id: I28085960a4969f9255f7a132d28d233bf43b5d91
Signed-off-by: default avatarAdam Knapp <adam.knapp@sigmatechnology.se>
parent 4c184043
......@@ -44,10 +44,15 @@ public final class Runtime_Parallel_main {
try {
final int MC_port = Integer.parseInt(argv[1]);
if (MC_port < 0 && MC_port > 65536) {
throw new NumberFormatException();
}
TTCN_Snapshot.initialize();
TTCN_Logger.initialize_logger();
TTCN_Logger.set_start_time();
System.out.println("TTCN-3 Host Controller (parallel mode)");
try {
Module_List.pre_init_modules();
......@@ -57,7 +62,7 @@ public final class Runtime_Parallel_main {
returnValue = -1;
}
} catch (NumberFormatException e) {
System.out.println("Fatal error. Wrong port number: " + argv[1]);
System.out.println("Fatal error. Invalid MC port: " + argv[1]);
returnValue = -1;
} catch (final Throwable e) {
TTCN_Logger.log_str(Severity.ERROR_UNQUALIFIED, "Fatal error. Aborting execution.");
......
......@@ -42,6 +42,8 @@ public final class Runtime_Single_main {
TTCN_Logger.initialize_logger();
TTCN_Logger.set_start_time();
System.out.println("TTCN-3 Host Controller (single mode)");
if (Usage_Stats.USAGE_STAT_SENDING) {
Module_List.send_usage_stats();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment