]>
Commit | Line | Data |
---|---|---|
86132a69 VZ |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: wx/cppunit.h | |
3 | // Purpose: wrapper header for CppUnit headers | |
4 | // Author: Vadim Zeitlin | |
5 | // Created: 15.02.04 | |
6 | // RCS-ID: $Id$ | |
7 | // Copyright: (c) 2004 Vadim Zeitlin | |
8 | ///////////////////////////////////////////////////////////////////////////// | |
9 | ||
10 | #ifndef _WX_CPPUNIT_H_ | |
11 | #define _WX_CPPUNIT_H_ | |
12 | ||
13 | // using CPPUNIT_TEST() macro results in this warning, disable it as there is | |
14 | // no other way to get rid of it and it's not very useful anyhow | |
15 | #ifdef __VISUALC__ | |
16 | // typedef-name 'foo' used as synonym for class-name 'bar' | |
17 | #pragma warning(disable:4097) | |
18 | ||
19 | // unreachable code: we don't care about warnings in CppUnit headers | |
20 | #pragma warning(disable:4702) | |
21 | ||
22 | // 'id': identifier was truncated to 'num' characters in the debug info | |
23 | #pragma warning(disable:4786) | |
24 | #endif // __VISUALC__ | |
25 | ||
20f46e8d VS |
26 | #ifdef __BORLANDC__ |
27 | #pragma warn -8022 | |
28 | #endif | |
29 | ||
86132a69 VZ |
30 | #include "wx/beforestd.h" |
31 | #include <cppunit/extensions/TestFactoryRegistry.h> | |
32 | #include <cppunit/ui/text/TestRunner.h> | |
33 | #include <cppunit/TestCase.h> | |
34 | #include <cppunit/extensions/HelperMacros.h> | |
35 | #include "wx/afterstd.h" | |
36 | ||
20f46e8d VS |
37 | #ifdef __BORLANDC__ |
38 | #pragma warn .8022 | |
39 | #endif | |
40 | ||
86132a69 VZ |
41 | #ifdef _MSC_VER |
42 | #pragma warning(default:4702) | |
43 | #endif // _MSC_VER | |
44 | ||
45 | // for VC++ automatically link in cppunit library | |
46 | #ifdef __VISUALC__ | |
47 | #ifdef NDEBUG | |
48 | #pragma comment(lib, "cppunit.lib") | |
49 | #else // Debug | |
50 | #pragma comment(lib, "cppunitd.lib") | |
51 | #endif // Release/Debug | |
52 | #endif | |
53 | ||
54 | #endif // _WX_CPPUNIT_H_ | |
55 |