diff --git a/src/tests/unittests/RefCountedTests.cpp b/src/tests/unittests/RefCountedTests.cpp index 18b3b47c4b..06bd151b77 100644 --- a/src/tests/unittests/RefCountedTests.cpp +++ b/src/tests/unittests/RefCountedTests.cpp @@ -126,7 +126,7 @@ TEST(Ref, DefaultsToNull) { Ref test; EXPECT_EQ(test.Get(), nullptr); - EXPECT_EQ(test->GetThis(), nullptr); + // Can't check GetThis() returns nullptr, as it would be undefined behavior. } // Test Ref's copy constructor