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

Commit 34768972 authored by Chris Manton's avatar Chris Manton
Browse files

Add Death Test Styles for threaded osi::array_test

Bug: 194254794
Tag: #refactor
Test: atest --host --iterations 100 net_test_osi

Change-Id: I24c417d909b66476c240595cbfc9470d297f0065
parent 8fc2527c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -15,12 +15,14 @@ TEST_F(ArrayTest, test_new_free_simple) {
TEST_F(ArrayTest, test_free_null) { array_free(NULL); }

TEST_F(ArrayTest, test_invalid_ptr) {
  ::testing::FLAGS_gtest_death_test_style = "threadsafe";
  array_t* array = array_new(4);
  EXPECT_DEATH(array_ptr(array), "");
  array_free(array);
}

TEST_F(ArrayTest, test_invalid_at) {
  ::testing::FLAGS_gtest_death_test_style = "threadsafe";
  array_t* array = array_new(4);
  EXPECT_DEATH(array_at(array, 1), "");
  array_free(array);