diff options
Diffstat (limited to 'ios')
-rw-r--r-- | ios/qa/sc/filters-test.m | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ios/qa/sc/filters-test.m b/ios/qa/sc/filters-test.m index 88de28ad95b1..19be41e8ee3e 100644 --- a/ios/qa/sc/filters-test.m +++ b/ios/qa/sc/filters-test.m @@ -27,6 +27,8 @@ * instead of those above. */ +#include <stdlib.h> + #import <UIKit/UIKit.h> #include "cppunit/extensions/TestFactoryRegistry.h" @@ -67,6 +69,11 @@ didFinishLaunchingWithOptions: (NSDictionary *) launchOptions self.window = uiw; [uiw release]; + // See unotest/source/cpp/bootstrapfixturebase.cxx + const char *app_root = [[[NSBundle mainBundle] bundlePath] UTF8String]; + setenv("SRC_ROOT", app_root, 1); + setenv("OUTDIR_FOR_BUILD", app_root, 1); + CppUnitTestPlugIn *iface = cppunitTestPlugIn(); iface->initialize(&CppUnit::TestFactoryRegistry::getRegistry(), CppUnit::PlugInParameters()); |