[Libreoffice-commits] .: sal/qa
Lubos Lunak
llunak at kemper.freedesktop.org
Mon Mar 12 08:37:15 PDT 2012
sal/qa/rtl/strings/test_ostring_stringliterals.cxx | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit 9fabd6c078b1aeaa565887ee83fb57daf5c123e0
Author: LuboÅ¡ LuÅák <l.lunak at suse.cz>
Date: Mon Mar 12 16:11:20 2012 +0100
handle msvc not even compiling a test that should fail
but that is fine, because outside the unittest it should fail
everywhere
diff --git a/sal/qa/rtl/strings/test_ostring_stringliterals.cxx b/sal/qa/rtl/strings/test_ostring_stringliterals.cxx
index 46da8c8..22f79ab 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
More information about the Libreoffice-commits
mailing list