diff options
author | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2003-04-10 19:59:37 +0000 |
---|---|---|
committer | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2003-04-10 19:59:37 +0000 |
commit | 3df4acfa816441fc28a95dee6d0191a927145d95 (patch) | |
tree | b5ae7ca44662cfd8e5c95f1826e4406021a606f5 /examples/Export/test.cpp | |
parent | 60a5612b83d856fc0adc52b9f39fac9960ec9818 (diff) | |
download | ATCD-pre-subset.tar.gz |
This commit was manufactured by cvs2svn to create tag 'pre-subset'.pre-subset
Diffstat (limited to 'examples/Export/test.cpp')
-rw-r--r-- | examples/Export/test.cpp | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/examples/Export/test.cpp b/examples/Export/test.cpp deleted file mode 100644 index 69fe20158bf..00000000000 --- a/examples/Export/test.cpp +++ /dev/null @@ -1,64 +0,0 @@ -// $Id$ - -#include "dll.h" -#include <iostream> - -int -main (int, char *[]) -{ - int failure_count = 0; - test_class my_test_class; - - // Tet out the export of a class. I don't see - // How this can fail at runtime (rather it would - // probably give link errors), but just in case... - - std::cout << "Method Test: "; - if (my_test_class.method () != RETVAL) - { - std::cout << "Failed" << std::endl; - ++failure_count; - } - else - std::cout << "Succeeded" << std::endl; - - // Test out the export of a function. Like above, - // I don't know how this can fail at runtime. - - std::cout << "Function Test: "; - if (test_function () != RETVAL) - { - std::cout << "Failed" << std::endl; - ++failure_count; - } - else - std::cout << "Succeeded" << std::endl; - - // Also test out the export of data. - - std::cout << "Variable Test: "; - if (test_variable != RETVAL) - { - std::cout << "Failed" << std::endl; - ++failure_count; - } - else - std::cout << "Succeeded" << std::endl; - - - // Test out the ACE_Singleton export by checking to see - // that we have the same instance pointer as the DLL does. - // This can fail at runtime. - - std::cout << "Singleton Test: "; - if (TEST_SINGLETON::instance () != get_dll_singleton ()) - { - std::cout << "Failed" << std::endl; - ++failure_count; - } - else - std::cout << "Succeeded" << std::endl; - - // Return the number of failures - return failure_count; -} |