nit - remove shared code allocator test section that tests self move

This commit is contained in:
Vighnesh 2024-10-11 13:22:20 -07:00
parent a02bee5acc
commit f52fe9f351
2 changed files with 1 additions and 12 deletions

View file

@ -176,15 +176,7 @@ TEST_CASE("NativeModuleRefRefcounting")
REQUIRE(modRefB->getRefcount() == 1);
// NativeModuleRef self move assignment:
{
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wself-move"
NativeModuleRef modRef1{modRefA};
modRef1 = std::move(modRef1);
REQUIRE(modRef1.get() == modRefA.get());
REQUIRE(modRefA->getRefcount() == 2);
#pragma GCC diagnostic pop
}
// deleted because of unecessary warnings
REQUIRE(modRefA->getRefcount() == 1);
REQUIRE(modRefB->getRefcount() == 1);

View file

@ -465,8 +465,6 @@ TEST_CASE("proof_that_isBoolean_uses_all_of")
TEST_CASE("content_reassignment")
{
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wgimaybe-uninitialized"
Type myAny{AnyType{}, /*presistent*/ true};
myAny.documentationSymbol = "@global/any";
@ -479,7 +477,6 @@ TEST_CASE("content_reassignment")
CHECK(!futureAny->persistent);
CHECK(futureAny->documentationSymbol == "@global/any");
CHECK(futureAny->owningArena == &arena);
#pragma GCC diagnostic pop
}
TEST_SUITE_END();