diff options
author | 2015-05-20 12:30:59 -0700 | |
---|---|---|
committer | 2015-07-13 17:38:40 -0700 | |
commit | 1e13374baf7dfaf442ffbf9809c37c131d681eaf (patch) | |
tree | 9a8a53295a8389d7ec10accf3efb8785a97a3599 /runtime/utils_test.cc | |
parent | f68c8545382925062da2b87169ca2b5314f0b431 (diff) |
Generalize Valgrind annotations in ART to support ASan.
Also add redzones around non-fixed mem_map(s).
Also extend -Wframe-larger-than limit to enable arm64 ASan build.
Change-Id: Ie572481a25fead59fc8978d2c317a33ac418516c
Diffstat (limited to 'runtime/utils_test.cc')
-rw-r--r-- | runtime/utils_test.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/utils_test.cc b/runtime/utils_test.cc index 66e38b1c13..f00edffab8 100644 --- a/runtime/utils_test.cc +++ b/runtime/utils_test.cc @@ -26,7 +26,7 @@ #include "scoped_thread_state_change.h" #include "handle_scope-inl.h" -#include <valgrind.h> +#include "base/memory_tool.h" namespace art { @@ -358,7 +358,7 @@ TEST_F(UtilsTest, ExecSuccess) { command.push_back("/usr/bin/id"); } std::string error_msg; - if (RUNNING_ON_VALGRIND == 0) { + if (!(RUNNING_ON_MEMORY_TOOL && kMemoryToolDetectsLeaks)) { // Running on valgrind fails due to some memory that leaks in thread alternate signal stacks. EXPECT_TRUE(Exec(command, &error_msg)); } @@ -372,7 +372,7 @@ TEST_F(UtilsTest, ExecError) { std::vector<std::string> command; command.push_back("bogus"); std::string error_msg; - if (RUNNING_ON_VALGRIND == 0) { + if (!(RUNNING_ON_MEMORY_TOOL && kMemoryToolDetectsLeaks)) { // Running on valgrind fails due to some memory that leaks in thread alternate signal stacks. EXPECT_FALSE(Exec(command, &error_msg)); EXPECT_NE(0U, error_msg.size()); |