1 /* |
|
2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: JavaCap |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "comms.h" |
|
20 #include "rtcmessages.h" |
|
21 #include "coremessages.h" |
|
22 #include "commsclientendpoint.h" |
|
23 #include "exceptionbase.h" |
|
24 |
|
25 #include "logger.h" |
|
26 |
|
27 using namespace java::util; |
|
28 using namespace java::comms; |
|
29 using namespace java::captain; |
|
30 |
|
31 |
|
32 int main(int argc, char *argv[]) |
|
33 { |
|
34 LOG(EUtils, EInfo, "TCK RUNNER main()"); |
|
35 int result = -1; |
|
36 try |
|
37 { |
|
38 if (argc > 0 && argv != 0) |
|
39 { |
|
40 CommsMessage message; |
|
41 message.setModuleId(PLUGIN_ID_JAVACAPTAIN_CORE_C); |
|
42 message.setMessageId(CORE_MSG_ID_DO_THREAD_DUMP); |
|
43 CommsClientEndpoint comms; |
|
44 comms.connect(IPC_ADDRESS_JAVA_CAPTAIN_C); |
|
45 comms.send(message); |
|
46 comms.disconnect(); |
|
47 |
|
48 result = 0; |
|
49 } |
|
50 } |
|
51 |
|
52 catch (ExceptionBase& e) |
|
53 { |
|
54 ELOG1(ETckRunner, "TCK RUNNER main() ExceptionBase caught: %s ", |
|
55 e.toString().c_str()); |
|
56 } |
|
57 |
|
58 catch (std::exception& e) |
|
59 { |
|
60 ELOG1(ETckRunner, "TCK RUNNER main() Exception %s caught", e.what()); |
|
61 } |
|
62 |
|
63 LOG1(ETckRunner, EInfo, "TCK RUNNER EXIT = %d", result); |
|
64 return result; |
|
65 } |
|
66 |
|
67 // End of File |
|