File: tests.h

package info (click to toggle)
dosbox-x 2025.10.07%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 53,184 kB
  • sloc: cpp: 339,023; ansic: 165,252; sh: 1,455; makefile: 963; perl: 385; python: 106; asm: 57
file content (33 lines) | stat: -rw-r--r-- 692 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#if C_DEBUG

#if !defined(_WIN32_WINDOWS)

// The following are source files containing unit tests.

#include "dos_files_tests.cpp"
#include "drives_tests.cpp"
#include "shell_cmds_tests.cpp"
#include "shell_redirection_tests.cpp"

#else
//google test code causes problem on win9x, remove them and add empty implementations for linkage.

#include <assert.h>
#include "gtest/gtest.h"
namespace testing {
void InitGoogleTest(int* argc, char** argv) {}

UnitTest* UnitTest::GetInstance() {static UnitTest ut; return &ut;}
UnitTest::UnitTest(){}
UnitTest::~UnitTest(){}
int UnitTest::Run() {return 0;}

namespace internal {
    Mutex::Mutex(){}
    Mutex::~Mutex(){}
}
}

#endif

#endif // DEBUG