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

Commit 42e294c7 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
Test: atest VtsVndkHidlBufferpoolV1_0TargetMultiTest VtsVndkHidlBufferpoolV2_0TargetMultiTest
Change-Id: I6e6b48796686098d63f09d965c3252140352d0d9
parent 1fa576bf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -215,7 +215,7 @@ TEST_F(BufferpoolMultiTest, TransferBuffer) {
}  // anonymous namespace

int main(int argc, char** argv) {
  setenv("TREBLE_TESTING_OVERRIDE", "true", true);
  android::hardware::details::setTrebleTestingOverride(true);
  ::testing::InitGoogleTest(&argc, argv);
  int status = RUN_ALL_TESTS();
  LOG(INFO) << "Test result = " << status;
+1 −1
Original line number Diff line number Diff line
@@ -215,7 +215,7 @@ TEST_F(BufferpoolMultiTest, TransferBuffer) {
}  // anonymous namespace

int main(int argc, char** argv) {
  setenv("TREBLE_TESTING_OVERRIDE", "true", true);
  android::hardware::details::setTrebleTestingOverride(true);
  ::testing::InitGoogleTest(&argc, argv);
  int status = RUN_ALL_TESTS();
  LOG(INFO) << "Test result = " << status;