1
0
forked from 0ad/0ad

# Linux fixes

This was SVN commit r4963.
This commit is contained in:
Ykkrosh 2007-03-19 20:58:46 +00:00
parent 5a92835788
commit b2978c42f6
3 changed files with 8 additions and 4 deletions

View File

@ -217,10 +217,7 @@ namespace CxxTest
#define TS_ASSERT_STR_EQUALS(str1, str2) TS_ASSERT_EQUALS(std::string(str1), std::string(str2))
#define TS_ASSERT_WSTR_EQUALS(str1, str2) TS_ASSERT_EQUALS(std::wstring(str1), std::wstring(str2))
static bool ts_str_contains(const std::string& str1, const std::string& str2)
{
return str1.find(str2) != str1.npos;
}
bool ts_str_contains(const std::string& str1, const std::string& str2); // defined in test_setup.cpp
#define TS_ASSERT_STR_CONTAINS(str1, str2) TS_ASSERT(ts_str_contains(str1, str2))
template <typename T>

View File

@ -45,3 +45,9 @@ class LeakReporter : public CxxTest::GlobalFixture
};
static LeakReporter leakReporter;
// Definition of function from lib/self_test.h
bool ts_str_contains(const std::string& str1, const std::string& str2)
{
return str1.find(str2) != str1.npos;
}

View File

@ -10,6 +10,7 @@
class PathListCtrl;
class NodeListCtrl;
class PathSlider;
class CinemaSpinnerBox;
class CinemaInfoBox;
class CinematicBottomBar;