Kaydet (Commit) 1f36132b authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Set SRC_ROOT and OUTDIR_FOR_BUILD (!) to get it get a bit further along

üst 82a8c4cf
...@@ -27,6 +27,8 @@ ...@@ -27,6 +27,8 @@
* instead of those above. * instead of those above.
*/ */
#include <stdlib.h>
#import <UIKit/UIKit.h> #import <UIKit/UIKit.h>
#include "cppunit/extensions/TestFactoryRegistry.h" #include "cppunit/extensions/TestFactoryRegistry.h"
...@@ -67,6 +69,11 @@ didFinishLaunchingWithOptions: (NSDictionary *) launchOptions ...@@ -67,6 +69,11 @@ didFinishLaunchingWithOptions: (NSDictionary *) launchOptions
self.window = uiw; self.window = uiw;
[uiw release]; [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(); CppUnitTestPlugIn *iface = cppunitTestPlugIn();
iface->initialize(&CppUnit::TestFactoryRegistry::getRegistry(), CppUnit::PlugInParameters()); iface->initialize(&CppUnit::TestFactoryRegistry::getRegistry(), CppUnit::PlugInParameters());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment