diff options
author | Tor Lillqvist <tlillqvist@suse.com> | 2011-12-19 01:25:41 +0200 |
---|---|---|
committer | Tor Lillqvist <tlillqvist@suse.com> | 2011-12-19 01:28:02 +0200 |
commit | 86cd55a24950263dce62a74a6829238bf035c42e (patch) | |
tree | 77ee0d85f5b7daaa8e1f222d022c545b95464bc8 | |
parent | 0f65dbcf9ac808a089793031b26893b74c138c0b (diff) |
Use / as SRC_ROOT and OUTDIR_FOR_BUILD on Android
-rw-r--r-- | unotest/source/cpp/bootstrapfixturebase.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/unotest/source/cpp/bootstrapfixturebase.cxx b/unotest/source/cpp/bootstrapfixturebase.cxx index 4ae52cd0c190..ca04b302d1aa 100644 --- a/unotest/source/cpp/bootstrapfixturebase.cxx +++ b/unotest/source/cpp/bootstrapfixturebase.cxx @@ -46,6 +46,7 @@ using namespace ::com::sun::star; test::BootstrapFixtureBase::BootstrapFixtureBase() : m_aSrcRootURL(RTL_CONSTASCII_USTRINGPARAM("file://")), m_aSolverRootURL( m_aSrcRootURL ) { +#ifndef ANDROID const char* pSrcRoot = getenv( "SRC_ROOT" ); CPPUNIT_ASSERT_MESSAGE("SRC_ROOT env variable not set", pSrcRoot != NULL && pSrcRoot[0] != 0); const char* pSolverRoot = getenv( "OUTDIR_FOR_BUILD" ); @@ -56,6 +57,10 @@ test::BootstrapFixtureBase::BootstrapFixtureBase() if (pSolverRoot[1] == ':') m_aSolverRootURL += rtl::OUString::createFromAscii( "/" ); #endif +#else + const char* pSrcRoot = "/"; + const char* pSolverRoot = "/"; +#endif m_aSrcRootPath = rtl::OUString::createFromAscii( pSrcRoot ); m_aSrcRootURL += m_aSrcRootPath; |