summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Elliott Hughes <enh@google.com> 2012-01-23 17:34:32 -0800
committer Elliott Hughes <enh@google.com> 2012-01-23 17:34:32 -0800
commita0cb1204543934b1f4975025cd6047eb71dc6429 (patch)
tree3f7604dd5406c157e639a15421633164aeb2344c
parent11d1b0c31ddd710d26068da8e0e4621002205b4b (diff)
Not all hosts are running linux...
Change-Id: I7575520b0e76bf25a19159dbbb9881bf8de792c7
-rw-r--r--src/common_test.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common_test.h b/src/common_test.h
index dc6f3bf9cd..7da730f180 100644
--- a/src/common_test.h
+++ b/src/common_test.h
@@ -199,7 +199,13 @@ class CommonTest : public testing::Test {
// We need to set this so that icu4c can find its locale data.
std::string root;
root += getenv("ANDROID_BUILD_TOP");
+#if defined(__linux__)
root += "/out/host/linux-x86";
+#elif defined(__APPLE__)
+ root += "/out/host/darwin-x86";
+#else
+#error unsupported OS
+#endif
setenv("ANDROID_ROOT", root.c_str(), 1);
}