summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorsb <sb@openoffice.org>2011-02-28 08:57:47 +0100
committersb <sb@openoffice.org>2011-02-28 08:57:47 +0100
commitbf5a377913bfb59f7010ad6dbca3e2247f7eff94 (patch)
tree2228e77fd03f7903ed746868fc92e581f92fba93 /sal
parent2daf5ba78e26535ca4a2e6b743c0801d1e75c067 (diff)
debuglevels: #i117073# Linux/GCC needs SAL_LOADMODULE_GLOBAL for exception handling to work
Diffstat (limited to 'sal')
-rw-r--r--sal/cppunittester/cppunittester.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sal/cppunittester/cppunittester.cxx b/sal/cppunittester/cppunittester.cxx
index ab3f61fcecee..c89a350d6708 100644
--- a/sal/cppunittester/cppunittester.cxx
+++ b/sal/cppunittester/cppunittester.cxx
@@ -115,7 +115,8 @@ SAL_IMPLEMENT_MAIN() {
}
rtl::OUString lib(getArgument(index + 1));
rtl::OUString sym(getArgument(index + 2));
- oslGenericFunction fn = (new osl::Module(lib))->getFunctionSymbol(sym);
+ oslGenericFunction fn = (new osl::Module(lib, SAL_LOADMODULE_GLOBAL))
+ ->getFunctionSymbol(sym);
CppUnit::Protector * p = fn == 0
? 0
: (*reinterpret_cast< cppunittester::ProtectorFactory * >(fn))();