fixed a lot of issues, now successfully runs the test with --enable-pedantic; refs #8
This commit is contained in:
@@ -30,7 +30,7 @@ class DynamicLibraryTest: public CppUnit::TestFixture {
|
||||
void Load() {
|
||||
mrw::DynamicLibrary lib("libdynamiclibrary_testlib");
|
||||
int(*test1)(int) = (int(*)(int))lib.symbol("test1");
|
||||
CPPUNIT_ASSERT((*test1)(2)==4);
|
||||
CPPUNIT_ASSERT_EQUAL(4, (*test1)(2));
|
||||
}
|
||||
void LoadError() {
|
||||
mrw::DynamicLibrary lib("DASist-Sicher_Keine_DynamischePHIPLIOTEEK!!!");
|
||||
|
Reference in New Issue
Block a user