diff options
Diffstat (limited to 'runtime/dex2oat_environment_test.h')
| -rw-r--r-- | runtime/dex2oat_environment_test.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/runtime/dex2oat_environment_test.h b/runtime/dex2oat_environment_test.h index 743fbb9c68..d717ec0fcb 100644 --- a/runtime/dex2oat_environment_test.h +++ b/runtime/dex2oat_environment_test.h @@ -137,7 +137,20 @@ class Dex2oatEnvironmentTest : public CommonRuntimeTest { } bool GetCachedImageFile(/*out*/std::string* image, std::string* error_msg) const { - std::string cache = GetDalvikCache(GetInstructionSetString(kRuntimeISA), true); + std::string cache; + bool have_android_data; + bool dalvik_cache_exists; + bool is_global_cache; + GetDalvikCache(GetInstructionSetString(kRuntimeISA), + true, + &cache, + &have_android_data, + &dalvik_cache_exists, + &is_global_cache); + if (!dalvik_cache_exists) { + *error_msg = "Failed to create dalvik cache"; + return false; + } return GetDalvikCacheFilename(GetImageLocation().c_str(), cache.c_str(), image, error_msg); } |