From 56273ce0d2a8095d5c1451e0a73fa95d51d0cad8 Mon Sep 17 00:00:00 2001 From: Steven Moreland Date: Thu, 9 Jul 2020 21:56:24 +0000 Subject: [PATCH] Avoid TREBLE_TESTING_OVERRIDE This is moved from an environmental variable to a function since getenv is problematic in multi-threaded testing environments. Bug: 156668058 Test: fmq_test Change-Id: I54c6a973ef9d1cec98330268ed0a40c2564ee42c --- tests/msgq/1.0/default/mq_test_service.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/msgq/1.0/default/mq_test_service.cpp b/tests/msgq/1.0/default/mq_test_service.cpp index b5cb662549..b921bfd34e 100644 --- a/tests/msgq/1.0/default/mq_test_service.cpp +++ b/tests/msgq/1.0/default/mq_test_service.cpp @@ -24,5 +24,6 @@ using android::hardware::tests::msgq::V1_0::ITestMsgQ; using android::hardware::defaultPassthroughServiceImplementation; int main() { + android::hardware::details::setTrebleTestingOverride(true); return defaultPassthroughServiceImplementation(); }