diff options
author | 2017-09-19 20:02:42 -0700 | |
---|---|---|
committer | 2017-09-20 10:29:29 -0700 | |
commit | 672bcf5b537d93522d04313f77c0ffa0550f19cc (patch) | |
tree | 1a9d224a7ec86c241b746d4f32e83a866dee0a3d | |
parent | b407afe983f8b106a5007d07aa2523ffc6525018 (diff) |
ART: Fix os << std::string* errors
Fix some unintented pointer logging.
Test: m
Change-Id: I7d66ec2f33cc46588b6f549876241871f19ce995
-rw-r--r-- | dex2oat/linker/oat_writer_test.cc | 2 | ||||
-rw-r--r-- | runtime/dex_file_verifier_test.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/dex2oat/linker/oat_writer_test.cc b/dex2oat/linker/oat_writer_test.cc index 0600ceb12d..33d1491933 100644 --- a/dex2oat/linker/oat_writer_test.cc +++ b/dex2oat/linker/oat_writer_test.cc @@ -99,7 +99,7 @@ class OatTest : public CommonCompilerTest { /*out*/std::string* error_msg) { ASSERT_TRUE(error_msg != nullptr); insn_features_ = InstructionSetFeatures::FromVariant(insn_set, "default", error_msg); - ASSERT_TRUE(insn_features_ != nullptr) << error_msg; + ASSERT_TRUE(insn_features_ != nullptr) << *error_msg; compiler_options_.reset(new CompilerOptions); for (const std::string& option : compiler_options) { compiler_options_->ParseCompilerOption(option, Usage); diff --git a/runtime/dex_file_verifier_test.cc b/runtime/dex_file_verifier_test.cc index e2770d1464..21de059797 100644 --- a/runtime/dex_file_verifier_test.cc +++ b/runtime/dex_file_verifier_test.cc @@ -113,7 +113,7 @@ static std::unique_ptr<const DexFile> OpenDexFileBase64(const char* base64, ScopedObjectAccess soa(Thread::Current()); std::vector<std::unique_ptr<const DexFile>> tmp; bool success = DexFile::Open(location, location, true, error_msg, &tmp); - CHECK(success) << error_msg; + CHECK(success) << *error_msg; EXPECT_EQ(1U, tmp.size()); std::unique_ptr<const DexFile> dex_file = std::move(tmp[0]); EXPECT_EQ(PROT_READ, dex_file->GetPermissions()); |