Fix initialization of badhandler_low_water_mark in SigaltstackTest.
It is now correctly initialized to the top of the signal stack. Previously it was initialized to the address of 'stack.ss_sp' on the main thread stack. PiperOrigin-RevId: 258248363
This commit is contained in:
parent
9b4d3280e1
commit
ab44d145bb
|
@ -175,7 +175,7 @@ TEST(SigaltstackTest, WalksOffBottom) {
|
|||
|
||||
// Trigger a single fault.
|
||||
badhandler_low_water_mark =
|
||||
reinterpret_cast<char*>(&stack.ss_sp) + SIGSTKSZ; // Expected top.
|
||||
static_cast<char*>(stack.ss_sp) + SIGSTKSZ; // Expected top.
|
||||
badhandler_recursive_faults = 0; // Disable refault.
|
||||
Fault();
|
||||
EXPECT_TRUE(badhandler_on_sigaltstack);
|
||||
|
|
Loading…
Reference in New Issue