summaryrefslogtreecommitdiff
path: root/libs/binderthreadstate/test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libs/binderthreadstate/test.cpp')
-rw-r--r--libs/binderthreadstate/test.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/binderthreadstate/test.cpp b/libs/binderthreadstate/test.cpp
index 44e2fd19b1..68cc225057 100644
--- a/libs/binderthreadstate/test.cpp
+++ b/libs/binderthreadstate/test.cpp
@@ -165,6 +165,7 @@ int server(size_t thisId, size_t otherId) {
android::ProcessState::self()->startThreadPool();
// HIDL
+ setenv("TREBLE_TESTING_OVERRIDE", "true", true);
android::hardware::configureRpcThreadpool(1, true /*callerWillJoin*/);
sp<IHidlStuff> hidlServer = new HidlServer(thisId, otherId);
CHECK(OK == hidlServer->registerAsService(id2name(thisId).c_str()));
@@ -175,7 +176,7 @@ int server(size_t thisId, size_t otherId) {
int main(int argc, char** argv) {
::testing::InitGoogleTest(&argc, argv);
- android::hardware::details::setTrebleTestingOverride(true);
+ setenv("TREBLE_TESTING_OVERRIDE", "true", true);
if (fork() == 0) {
prctl(PR_SET_PDEATHSIG, SIGHUP);
return server(kP1Id, kP2Id);