Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 29e1ae65 authored by Steven Moreland's avatar Steven Moreland
Browse files

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
Bug: 160796914
Test: N/A
Change-Id: Ic90258adad95d3b3c2a6a4758c4e1b5efbedc8fd
parent a1a0c516
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -29,8 +29,8 @@
#include "SurfaceFlinger.h" // Get the name of the service...

#include <binder/IServiceManager.h>

#include <cutils/properties.h>
#include <hidl/ServiceManagement.h>

#include <iomanip>
#include <thread>
@@ -173,7 +173,7 @@ void FakeHwcEnvironment::SetUp() {
    property_set("debug.sf.hwc_service_name", "mock");

    // This allows tests/SF to register/load a HIDL service not listed in manifest files.
    setenv("TREBLE_TESTING_OVERRIDE", "true", true);
    android::hardware::details::setTrebleTestingOverride(true);
    property_set("debug.sf.treble_testing_override", "true");
}