|
Revision 37881, 1.1 kB
(checked in by saturday06, 3 years ago)
|
|
mdmdp
|
-
Property svn:executable set to
*
|
| Line | |
|---|
| 1 | #include <mil/PrecompiledHeaders.h> |
|---|
| 2 | #include <mil/FilterException.h> |
|---|
| 3 | #include "Test.h" |
|---|
| 4 | |
|---|
| 5 | quicktest::Test* quicktest::TestManager::currentTest = NULL; |
|---|
| 6 | quicktest::TestResult* quicktest::TestManager::currentResult = NULL; |
|---|
| 7 | |
|---|
| 8 | QT_TEST(oifdjaosdfjsofdiajsdfoajdfi) { |
|---|
| 9 | QT_CHECK(true); |
|---|
| 10 | } |
|---|
| 11 | |
|---|
| 12 | int start(int argc, char** argv) { |
|---|
| 13 | |
|---|
| 14 | #ifdef MIL_UI_COCOA |
|---|
| 15 | [NSApplication sharedApplication]; |
|---|
| 16 | #endif |
|---|
| 17 | |
|---|
| 18 | QT_RUN_TESTS; |
|---|
| 19 | return 0; |
|---|
| 20 | } |
|---|
| 21 | |
|---|
| 22 | int main(int argc, char** argv) { |
|---|
| 23 | using namespace std; |
|---|
| 24 | printf(" ===== ARG ===== \n"); |
|---|
| 25 | for (int i = 0; i < argc; ++i) { |
|---|
| 26 | printf("%s\n", argv[i]); |
|---|
| 27 | } |
|---|
| 28 | printf(" ===== ENV ===== \n"); |
|---|
| 29 | #if MIL_OS_UNIX |
|---|
| 30 | { |
|---|
| 31 | extern char** environ; |
|---|
| 32 | for (int i = 0; environ[i]; ++i) { |
|---|
| 33 | printf("%s\n", environ[i]); |
|---|
| 34 | } |
|---|
| 35 | } |
|---|
| 36 | #else |
|---|
| 37 | { |
|---|
| 38 | TCHAR* es = GetEnvironmentStrings(); |
|---|
| 39 | for (int i = 0; es[i] && es[i + 1]; i += _tcslen(&es[i]) + 1) { |
|---|
| 40 | _tprintf(_T("%s\n"), &es[i]); |
|---|
| 41 | } |
|---|
| 42 | FreeEnvironmentStrings(es); |
|---|
| 43 | } |
|---|
| 44 | #endif |
|---|
| 45 | printf(" =============== \n"); |
|---|
| 46 | return filter_exception_and_start(start, argc, argv); |
|---|
| 47 | } |
|---|