fix(test) Add #if MHP_ENABLE_SAFETY_CHECKS to Stack_AllocationFailsOutsideScope and VirtualStack_AllocationFailsOutsideScope

This commit is contained in:
2026-04-04 19:48:12 +09:00
parent 578da115b9
commit b57b7adc77
3 changed files with 5 additions and 1 deletions

View File

@@ -144,6 +144,7 @@ public unsafe class TestStack
Assert.IsNull(stack.Buffer);
}
#if MHP_ENABLE_SAFETY_CHECKS
[TestMethod]
public void Stack_AllocationFailsOutsideScope()
{
@@ -157,6 +158,7 @@ public unsafe class TestStack
stack.Dispose();
}
}
#endif
[TestMethod]
public void Stack_InvalidAlignment_Throws()