summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2012-03-12 16:11:20 +0100
committerLuboš Luňák <l.lunak@suse.cz>2012-03-12 16:36:59 +0100
commit9fabd6c078b1aeaa565887ee83fb57daf5c123e0 (patch)
tree126a1a58bfb208436eeaee090185f631b1fd9975
parent9895690965e79cc57502001f95a2cb09971fe7d5 (diff)
handle msvc not even compiling a test that should fail
but that is fine, because outside the unittest it should fail everywhere
-rw-r--r--sal/qa/rtl/strings/test_ostring_stringliterals.cxx5
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