summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author Chih-Hung Hsieh <chh@google.com> 2016-08-26 15:06:11 -0700
committer Chih-Hung Hsieh <chh@google.com> 2016-08-26 17:52:41 -0700
commit1a0de6acd03b43a03678b58f47b2f21b5215cc22 (patch)
tree7d03f89b9d64ebc40ea382011de524d18a004f73 /test
parentcc55a7ce2aa0f10c2da9efaa89855cf075e56e20 (diff)
Fix clang-tidy warnings in art.
* Add parentheses around macro parameters, or use NOLINT to suppress warning. Bug: 28705665 Test: build with WITH_TIDY=1 Change-Id: Ifc922c2e66215772042bac372754ea70074f0053
Diffstat (limited to 'test')
-rw-r--r--test/901-hello-ti-agent/basics.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/901-hello-ti-agent/basics.cc b/test/901-hello-ti-agent/basics.cc
index 81a1b66683..3a475c6fef 100644
--- a/test/901-hello-ti-agent/basics.cc
+++ b/test/901-hello-ti-agent/basics.cc
@@ -35,7 +35,7 @@ jint OnLoad(JavaVM* vm,
#define CHECK_CALL_SUCCESS(c) \
do { \
- if (c != JNI_OK) { \
+ if ((c) != JNI_OK) { \
printf("call " #c " did not succeed\n"); \
return -1; \
} \