Skip to content

Commit

Permalink
nit - remove shared code allocator test section that tests self move
Browse files Browse the repository at this point in the history
  • Loading branch information
Vighnesh-V committed Oct 11, 2024
1 parent a02bee5 commit f52fe9f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
10 changes: 1 addition & 9 deletions tests/SharedCodeAllocator.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 0 additions & 3 deletions tests/TypeVar.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand All @@ -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();

0 comments on commit f52fe9f

Please sign in to comment.