diff options
author | Tor Lillqvist <tml@iki.fi> | 2012-03-06 19:02:16 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2012-03-07 07:35:34 +0200 |
commit | 5afda5fcdf191e1144a2cad614c8307bf5850ce0 (patch) | |
tree | deb61ac36a0b95f7708cd1e8c880074bb90294db /ios | |
parent | d4cd853edd3744a4569bd5a23fd461394837e5c7 (diff) |
Pass parameters to cppunittester's lo_main()
Diffstat (limited to 'ios')
-rw-r--r-- | ios/qa/sc/filters-test.m | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/ios/qa/sc/filters-test.m b/ios/qa/sc/filters-test.m index 5621f34a7618..88de28ad95b1 100644 --- a/ios/qa/sc/filters-test.m +++ b/ios/qa/sc/filters-test.m @@ -35,7 +35,7 @@ extern "C" { extern CppUnitTestPlugIn *cppunitTestPlugIn(void); - extern int lo_main(int argc, char **argv); + extern int lo_main(int argc, const char **argv); } int @@ -70,9 +70,16 @@ didFinishLaunchingWithOptions: (NSDictionary *) launchOptions CppUnitTestPlugIn *iface = cppunitTestPlugIn(); iface->initialize(&CppUnit::TestFactoryRegistry::getRegistry(), CppUnit::PlugInParameters()); - // Temporarily until we actualy get this to link, then - // add actual args needed by cppunittester - lo_main(0, NULL); + const char *argv[] = { + "lo-qa-sc-filters-test", + "dummy-testlib", + "--headless", + "--protector", + "dummy-libunoexceptionprotector", + "dummy-unoexceptionprotector" + }; + + lo_main(sizeof(argv)/sizeof(*argv), argv); [self.window makeKeyAndVisible]; return YES; |