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

Commit 2ab4ba8d authored by William Escande's avatar William Escande
Browse files

Print name of the test at setup and teardown

Test: atest bluetooth_test_gd_unit
Bug: 269535256
Change-Id: I054f6d0964c4589074620534a792a643d74ef6d9
parent 0b80c757
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -169,6 +169,11 @@ class SnoopLoggerModuleTest : public Test {

 protected:
  void SetUp() override {
    const testing::TestInfo* const test_info =
        testing::UnitTest::GetInstance()->current_test_info();

    LOG_DEBUG(
        "Setup for test %s in test suite %s.\n", test_info->name(), test_info->test_suite_name());
    temp_dir_ = std::filesystem::temp_directory_path();
    temp_snoop_log_ = temp_dir_ / "btsnoop_hci.log";
    temp_snoop_log_last_ = temp_dir_ / "btsnoop_hci.log.last";
@@ -197,6 +202,13 @@ class SnoopLoggerModuleTest : public Test {
    fake_timerfd_reset();
    test_registry->StopAll();
    delete test_registry;

    const testing::TestInfo* const test_info =
        testing::UnitTest::GetInstance()->current_test_info();
    LOG_DEBUG(
        "TearDown for test %s in test suite %s.\n",
        test_info->name(),
        test_info->test_suite_name());
  }

  void DeleteSnoopLogFiles() {