Made the Unit test stuff a bit more mwcc/mwld friendly. It still doesn't build right out of the box with our build system, but with a few changes to the build system it can be done (I'm not going to do that, though).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6640 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -4,6 +4,8 @@
|
||||
#include <string>
|
||||
#include <SupportDefs.h>
|
||||
|
||||
#include <cppunit/Portability.h>
|
||||
|
||||
// Handy defines :-)
|
||||
#define CHK CPPUNIT_ASSERT
|
||||
#define RES DecodeResult
|
||||
@@ -13,7 +15,7 @@
|
||||
// out just what the R5 libraries are returning.
|
||||
// Returns the same value passed in, so you can
|
||||
// use it inline in tests if necessary.
|
||||
status_t DecodeResult(status_t result);
|
||||
extern CPPUNIT_API status_t DecodeResult(status_t result);
|
||||
|
||||
// First parameter is equal to the second or third
|
||||
template<typename A, typename B, typename C>
|
||||
@@ -26,17 +28,17 @@ Equals(const A &a, const B &b, const C &c)
|
||||
}
|
||||
|
||||
// Returns a string version of the given integer
|
||||
string IntToStr(int i);
|
||||
extern CPPUNIT_API string IntToStr(int i);
|
||||
|
||||
// Calls system() with the concatenated string of command and parameter.
|
||||
void ExecCommand(const char *command, const char *parameter);
|
||||
extern CPPUNIT_API void ExecCommand(const char *command, const char *parameter);
|
||||
|
||||
// Calls system() with the concatenated string of command, parameter1,
|
||||
// " " and parameter2.
|
||||
void ExecCommand(const char *command, const char *parameter1,
|
||||
const char *parameter2);
|
||||
extern CPPUNIT_API void ExecCommand(const char *command, const char *parameter1,
|
||||
const char *parameter2);
|
||||
|
||||
// Calls system() with the given command (kind of silly, but it's consistent :-)
|
||||
void ExecCommand(const char *command);
|
||||
extern CPPUNIT_API void ExecCommand(const char *command);
|
||||
|
||||
#endif // __beos_test_utils_h__
|
||||
|
||||
Reference in New Issue
Block a user