OSDN Git Service

ART: Disable unstarted runtime pow test for valgrind
authorAndreas Gampe <agampe@google.com>
Fri, 22 Apr 2016 00:23:31 +0000 (17:23 -0700)
committerAndreas Gampe <agampe@google.com>
Fri, 22 Apr 2016 00:23:31 +0000 (17:23 -0700)
Valgrind seems to give the wrong result. Disable test for now.

Change-Id: I2b136abc107b53d89b70ccb20dd378a7b704d077

runtime/interpreter/unstarted_runtime_test.cc

index b26635c..814b001 100644 (file)
@@ -20,6 +20,7 @@
 #include <locale>
 
 #include "base/casts.h"
+#include "base/memory_tool.h"
 #include "class_linker.h"
 #include "common_runtime_test.h"
 #include "dex_instruction.h"
@@ -841,6 +842,11 @@ TEST_F(UnstartedRuntimeTest, Cos) {
 }
 
 TEST_F(UnstartedRuntimeTest, Pow) {
+  // Valgrind seems to get this wrong, actually. Disable for valgrind.
+  if (RUNNING_ON_MEMORY_TOOL != 0 && kMemoryToolIsValgrind) {
+    return;
+  }
+
   Thread* self = Thread::Current();
   ScopedObjectAccess soa(self);