summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--runtime/oat_file_assistant_test.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/runtime/oat_file_assistant_test.cc b/runtime/oat_file_assistant_test.cc
index 901bbc4be2..5a2997809b 100644
--- a/runtime/oat_file_assistant_test.cc
+++ b/runtime/oat_file_assistant_test.cc
@@ -1175,7 +1175,13 @@ class RaceGenerateTask : public Task {
args.push_back("--dex-file=" + dex_location_);
args.push_back("--oat-file=" + oat_location_);
std::string error_msg;
- ASSERT_TRUE(DexoptTest::Dex2Oat(args, &error_msg)) << error_msg;
+ if (kIsTargetBuild) {
+ // Don't check whether dex2oat is successful: given we're running kNumThreads in
+ // parallel, low memory killer might just kill some of the dex2oat invocations.
+ DexoptTest::Dex2Oat(args, &error_msg);
+ } else {
+ ASSERT_TRUE(DexoptTest::Dex2Oat(args, &error_msg)) << error_msg;
+ }
}
dex_files = Runtime::Current()->GetOatFileManager().OpenDexFilesFromOat(