diff options
author | sb <sb@openoffice.org> | 2011-02-28 08:57:47 +0100 |
---|---|---|
committer | sb <sb@openoffice.org> | 2011-02-28 08:57:47 +0100 |
commit | 2e5c4d6df1939dfee06b16e5f6c47e73c54cf2e1 (patch) | |
tree | dcae8ae4a9a1b0f7673ca034f3f1c94ad1e93a83 /sal | |
parent | 98f9dd19ec450216df9637dd09d6007843c11330 (diff) |
debuglevels: #i117073# Linux/GCC needs SAL_LOADMODULE_GLOBAL for exception handling to work
Diffstat (limited to 'sal')
-rw-r--r-- | sal/cppunittester/cppunittester.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sal/cppunittester/cppunittester.cxx b/sal/cppunittester/cppunittester.cxx index ab3f61fce..c89a350d6 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))(); |