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

Commit a2f5335b authored by Mitch Phillips's avatar Mitch Phillips
Browse files

[GWP-ASan] [debuggerd] Change test to handle default recoverable

Test: atest debuggerd_test
Bug: N/A
Change-Id: I01d79b0058c5c2b5ff0697be69b252728d46a82e
parent d49456a1
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -1874,8 +1874,8 @@ TEST_P(GwpAsanCrasherTest, run_gwp_asan_test) {
  StartProcess([&recoverable]() {
  StartProcess([&recoverable]() {
    const char* env[] = {"GWP_ASAN_SAMPLE_RATE=1", "GWP_ASAN_PROCESS_SAMPLING=1",
    const char* env[] = {"GWP_ASAN_SAMPLE_RATE=1", "GWP_ASAN_PROCESS_SAMPLING=1",
                         "GWP_ASAN_MAX_ALLOCS=40000", nullptr, nullptr};
                         "GWP_ASAN_MAX_ALLOCS=40000", nullptr, nullptr};
    if (recoverable) {
    if (!recoverable) {
      env[3] = "GWP_ASAN_RECOVERABLE=true";
      env[3] = "GWP_ASAN_RECOVERABLE=false";
    }
    }
    std::string test_name = ::testing::UnitTest::GetInstance()->current_test_info()->name();
    std::string test_name = ::testing::UnitTest::GetInstance()->current_test_info()->name();
    test_name = std::regex_replace(test_name, std::regex("run_gwp_asan_test"),
    test_name = std::regex_replace(test_name, std::regex("run_gwp_asan_test"),