diff options
author | Tor Lillqvist <tml@iki.fi> | 2012-03-08 23:30:03 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2012-03-08 23:35:29 +0200 |
commit | 1f36132b1995dc1e89d2b0b372f5805a9d3c5a95 (patch) | |
tree | cbc73f7200d341fb3cc1f4a0a84492dd4d31dbb1 /ios | |
parent | 82a8c4cf35abdd7d8db323068bd0a840b4901ee3 (diff) |
Set SRC_ROOT and OUTDIR_FOR_BUILD (!) to get it get a bit further along
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()); |