diff options
| author | 2014-08-06 23:35:04 +0000 | |
|---|---|---|
| committer | 2014-08-05 00:30:25 +0000 | |
| commit | 4d110c25bbcc3ed4603e94968ee02db7b2c9db8c (patch) | |
| tree | 9a9342e2924012f907c360c9844429b1596c2a9e /compiler/utils/assembler_test.h | |
| parent | 68b84b78c72824667b66e6b93caab6abf3736f35 (diff) | |
| parent | 7747c8de402f64e3009ca3bcccebddbb70f617ee (diff) | |
Merge "ART: Remove test files after test"
Diffstat (limited to 'compiler/utils/assembler_test.h')
| -rw-r--r-- | compiler/utils/assembler_test.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/compiler/utils/assembler_test.h b/compiler/utils/assembler_test.h index 754496b332..05ac70ed74 100644 --- a/compiler/utils/assembler_test.h +++ b/compiler/utils/assembler_test.h @@ -208,12 +208,17 @@ class AssemblerTest : public testing::Test { assembler_.reset(new Ass()); // Fake a runtime test for ScratchFile - std::string android_data; - CommonRuntimeTest::SetEnvironmentVariables(android_data); + CommonRuntimeTest::SetUpAndroidData(android_data_); SetUpHelpers(); } + void TearDown() OVERRIDE { + // We leave temporaries in case this failed so we can debug issues. + CommonRuntimeTest::TearDownAndroidData(android_data_, false); + tmpnam_ = ""; + } + // Override this to set up any architecture-specific things, e.g., register vectors. virtual void SetUpHelpers() {} @@ -687,6 +692,8 @@ class AssemblerTest : public testing::Test { std::string resolved_objdump_cmd_; std::string resolved_disassemble_cmd_; + std::string android_data_; + static constexpr size_t OBJDUMP_SECTION_LINE_MIN_TOKENS = 6; }; |