root/lang/objective-cplusplus/i3/trunk/src/mil/src/test/Main.cc @ 37881

Revision 37881, 1.1 kB (checked in by saturday06, 4 years ago)

mdmdp

  • Property svn:executable set to *
Line 
1#include <mil/PrecompiledHeaders.h>
2#include <mil/FilterException.h>
3#include "Test.h"
4
5quicktest::Test* quicktest::TestManager::currentTest = NULL;
6quicktest::TestResult* quicktest::TestManager::currentResult = NULL;
7
8QT_TEST(oifdjaosdfjsofdiajsdfoajdfi) {
9    QT_CHECK(true);
10}
11
12int 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
22int 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}
Note: See TracBrowser for help on using the browser.