diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2012-03-12 16:11:20 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2012-03-12 16:36:59 +0100 |
commit | 9fabd6c078b1aeaa565887ee83fb57daf5c123e0 (patch) | |
tree | 126a1a58bfb208436eeaee090185f631b1fd9975 /sal | |
parent | 9895690965e79cc57502001f95a2cb09971fe7d5 (diff) |
handle msvc not even compiling a test that should fail
but that is fine, because outside the unittest it should fail
everywhere
Diffstat (limited to 'sal')
-rw-r--r-- | sal/qa/rtl/strings/test_ostring_stringliterals.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sal/qa/rtl/strings/test_ostring_stringliterals.cxx b/sal/qa/rtl/strings/test_ostring_stringliterals.cxx index 46da8c817e33..22f79ab630a6 100644 --- a/sal/qa/rtl/strings/test_ostring_stringliterals.cxx +++ b/sal/qa/rtl/strings/test_ostring_stringliterals.cxx @@ -100,7 +100,12 @@ void test::ostring::StringLiterals::checkCtors() void test::ostring::StringLiterals::testcall( const char str[] ) { +#ifndef _MSC_VER CPPUNIT_ASSERT( !CONST_CTOR_USED( str )); +#else + // MSVC just errors out on this for some reason, which is fine as well + (void)str; +#endif } #undef CONST_CTOR_USED |