diff options
| author | nakeee <nakeee@gmail.com> | 2010-04-12 05:33:17 +0000 |
|---|---|---|
| committer | nakeee <nakeee@gmail.com> | 2010-04-12 05:33:17 +0000 |
| commit | e7dc6c26ce8420eac4a09a7dc0fa299b2dfe60c4 (patch) | |
| tree | d2f901334c223925b5c62e99a0b7abf60985d6d8 /Source/UnitTests | |
| parent | 5cb916e9d14d0c7287f7e8e679719c359916e2a2 (diff) | |
UnitTests compiles on non win32
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5343 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/UnitTests')
| -rw-r--r-- | Source/UnitTests/AudioJitTests.cpp | 2 | ||||
| -rw-r--r-- | Source/UnitTests/UnitTests.cpp | 11 |
2 files changed, 8 insertions, 5 deletions
diff --git a/Source/UnitTests/AudioJitTests.cpp b/Source/UnitTests/AudioJitTests.cpp index 295ec0e815..ec4a21c4af 100644 --- a/Source/UnitTests/AudioJitTests.cpp +++ b/Source/UnitTests/AudioJitTests.cpp @@ -83,4 +83,4 @@ unsigned int DSPHost_CodeLoaded(unsigned const char*, int) { return 0; } void DSPHost_InterruptRequest() { } bool DSPHost_OnThread() { return false; } void DSPHost_WriteHostMemory(unsigned char, unsigned int) { } -unsigned char DSPHost_ReadHostMemory(unsigned int) { return 0; }
\ No newline at end of file +unsigned char DSPHost_ReadHostMemory(unsigned int) { return 0; } diff --git a/Source/UnitTests/UnitTests.cpp b/Source/UnitTests/UnitTests.cpp index 27eb352ea5..54f5e67555 100644 --- a/Source/UnitTests/UnitTests.cpp +++ b/Source/UnitTests/UnitTests.cpp @@ -26,26 +26,25 @@ void AudioJitTests(); using namespace std; - int fail_count = 0; #define EXPECT_TRUE(a) \ if (!a) { \ - cout << "FAIL (" __FUNCTION__ "): " << #a << " is false" << endl; \ + cout << "FAIL (" << __FUNCTION__ << "): " << #a << " is false" << endl; \ cout << "Value: " << a << endl << "Expected: true" << endl; \ fail_count++; \ } #define EXPECT_FALSE(a) \ if (a) { \ - cout << "FAIL (" __FUNCTION__ "): " << #a << " is true" << endl; \ + cout << "FAIL (" << __FUNCTION__ << "): " << #a << " is true" << endl; \ cout << "Value: " << a << endl << "Expected: false" << endl; \ fail_count++; \ } #define EXPECT_EQ(a, b) \ if ((a) != (b)) { \ - cout << "FAIL (" __FUNCTION__ "): " << #a << " is not equal to " << #b << endl; \ + cout << "FAIL (" << __FUNCTION__ << "): " << #a << " is not equal to " << #b << endl; \ cout << "Actual: " << a << endl << "Expected: " << b << endl; \ fail_count++; \ } @@ -101,7 +100,11 @@ void StringTests() EXPECT_EQ(TabsToSpaces(4, "a\tb"), "a b"); } +#ifdef _WIN32 int main(int argc, _TCHAR* argv[]) +#else +int main(int argc, char* argv[]) +#endif { AudioJitTests(); |
