summaryrefslogtreecommitdiff
path: root/sal/qa/osl/file/test_cpy_wrt_file.cxx
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2011-07-10 14:43:03 +0300
committerTor Lillqvist <tml@iki.fi>2011-07-10 14:43:03 +0300
commit6ab96ee3d57f1bdf79f58f02a1f2a455f72f3a5a (patch)
tree50d7baa0fc07d7f1cccd7a7f8c9e7492e98bb699 /sal/qa/osl/file/test_cpy_wrt_file.cxx
parent7e8ce369a76f0f9bda24a24a998137fbc2dd8b23 (diff)
Do build sal unit tests for iOS, too
We can't run them in the normal way, but we build the tests as static archives, which we link into the single sal_cppunittester_all executable. (Work in progress, so far just a part of the tests are linked into it.) There is no makefilery yet to actually construct a complete iOS app bundle (.app directory), so just copy (in this case) the sal_cppunittester_all iOS executable on top of the executbale some dummy iOS app you build in Xcode... works fine, can be debugged that way.
Diffstat (limited to 'sal/qa/osl/file/test_cpy_wrt_file.cxx')
-rw-r--r--sal/qa/osl/file/test_cpy_wrt_file.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/sal/qa/osl/file/test_cpy_wrt_file.cxx b/sal/qa/osl/file/test_cpy_wrt_file.cxx
index 891163120489..56135301e4cb 100644
--- a/sal/qa/osl/file/test_cpy_wrt_file.cxx
+++ b/sal/qa/osl/file/test_cpy_wrt_file.cxx
@@ -29,6 +29,10 @@
// MARKER(update_precomp.py): autogen include statement, do not remove
#include "precompiled_sal.hxx"
+#ifdef IOS
+#define CPPUNIT_PLUGIN_EXPORTED_NAME cppunitTest_tcwf
+#endif
+
#include <cppunit/TestFixture.h>
#include <cppunit/extensions/HelperMacros.h>
#include <cppunit/plugin/TestPlugIn.h>
@@ -43,7 +47,7 @@ using ::rtl::OUStringToOString;
using ::rtl::OString;
//Use to silence OSL_ warnings for a deliberate error
-extern "C" void SAL_CALL suppressOslDebugMessage( const sal_Char *, sal_Int32, const sal_Char * )
+extern "C" void SAL_CALL suppressOslDebugMessage2( const sal_Char *, sal_Int32, const sal_Char * )
{
}
@@ -71,7 +75,7 @@ public:
//deliberate errors, suppress run-time warning for operations on
//un-opened File
pfunc_osl_printDetailedDebugMessage pOldDebugMessageFunc =
- osl_setDetailedDebugMessageFunc( &suppressOslDebugMessage );
+ osl_setDetailedDebugMessageFunc( &suppressOslDebugMessage2 );
char buffer[1];
sal_uInt64 written = 0;