mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 05:13:58 -07:00
Fix sys_get_executable_name. Add mock object support. Add CxxTest wrapper to support "-test TestSuitename" and "-test TestSuitename::test_case_name" command-line arguments for running individual tests. This was SVN commit r7081.
15 lines
340 B
C++
15 lines
340 B
C++
#define CXXTEST_MOCK_TEST_SOURCE_FILE
|
|
#include "lib/sysdep/os.h"
|
|
|
|
// Cause calls to be redirected to the real function by default
|
|
#define DEFAULT(name) static T::Real_##name real_##name
|
|
|
|
#include "mocks/boost_filesystem.h"
|
|
DEFAULT(Boost_Filesystem_initial_path);
|
|
|
|
#if OS_LINUX
|
|
|
|
#include "mocks/dlfcn.h"
|
|
DEFAULT(dladdr);
|
|
|
|
#endif // OS_LINUX
|