summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--unotest/source/cpp/bootstrapfixturebase.cxx5
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;