OSDN Git Service

jni: test CriticalNative with generic jni
authorIgor Murashkin <iam@google.com>
Wed, 28 Sep 2016 20:23:19 +0000 (13:23 -0700)
committerIgor Murashkin <iam@google.com>
Wed, 28 Sep 2016 20:26:55 +0000 (20:26 +0000)
Previously this combination was uncovered due to a missing
line in the macro definition.

Bug: 31400248
Test: make test-art-host
Change-Id: I5407f46f2394edc028c9b74dc783899a3a2f6588

compiler/jni/jni_compiler_test.cc

index b692c6d..1430188 100644 (file)
@@ -431,6 +431,7 @@ jobject JniCompilerTest::class_loader_;
   TEST_F(JniCompilerTest, TestName ## CriticalGeneric) { \
     SCOPED_TRACE("@CriticalNative JNI with generic");  \
     gCurrentJni = static_cast<uint32_t>(JniKind::kCritical); \
+    SetCheckGenericJni(true);                    \
     TestName ## Impl();                          \
   }