2 #include <ace/streams.h>
5 ACE_TMAIN (int, ACE_TCHAR
*[])
8 test_class my_test_class
;
10 // Tet out the export of a class. I don't see
11 // How this can fail at runtime (rather it would
12 // probably give link errors), but just in case...
14 cout
<< "Method Test: ";
15 if (my_test_class
.method () != RETVAL
)
17 cout
<< "Failed" << endl
;
21 cout
<< "Succeeded" << endl
;
23 // Test out the export of a function. Like above,
24 // I don't know how this can fail at runtime.
26 cout
<< "Function Test: ";
27 if (test_function () != RETVAL
)
29 cout
<< "Failed" << endl
;
33 cout
<< "Succeeded" << endl
;
35 // Also test out the export of data.
37 cout
<< "Variable Test: ";
38 if (test_variable
!= RETVAL
)
40 cout
<< "Failed" << endl
;
44 cout
<< "Succeeded" << endl
;
47 // Test out the ACE_Singleton export by checking to see
48 // that we have the same instance pointer as the DLL does.
49 // This can fail at runtime.
51 cout
<< "Singleton Test: ";
52 if (TEST_SINGLETON::instance () != get_dll_singleton ())
54 cout
<< "Failed" << endl
;
58 cout
<< "Succeeded" << endl
;
60 // Return the number of failures