1616//
1717// Specifically, used by `functional_test` only.
1818
19- #include < cerrno>
2019#include < csignal>
2120#include < cstdint>
2221#include < cstdio>
4039#include " absl/time/clock.h"
4140#include " absl/time/time.h"
4241#include " ./common/logging.h"
43- #include " ./fuzztest/internal/logging.h"
4442#include " ./fuzztest/internal/test_flatbuffers_generated.h"
4543#include " ./fuzztest/internal/test_protobuf.pb.h"
4644#include " google/protobuf/descriptor.h"
@@ -798,11 +796,11 @@ class AlternateSignalStackFixture {
798796 // where the callbacks from the signal handler happen in a separate stack.
799797 new_sigact.sa_flags = SA_SIGINFO | SA_ONSTACK;
800798
801- FUZZTEST_CHECK (sigaction (SIGUSR1, &new_sigact, nullptr ) == 0 ) << errno ;
799+ FUZZTEST_PCHECK (sigaction (SIGUSR1, &new_sigact, nullptr ) == 0 );
802800 stack_t test_stack = {};
803801 test_stack.ss_size = 1 << 20 ;
804802 test_stack.ss_sp = malloc (test_stack.ss_size );
805- FUZZTEST_CHECK (sigaltstack (&test_stack, &old_stack) == 0 ) << errno ;
803+ FUZZTEST_PCHECK (sigaltstack (&test_stack, &old_stack) == 0 );
806804 }
807805
808806 void StackCalculationWorksWithAlternateStackForSignalHandlers (int i) {
@@ -822,7 +820,7 @@ class AlternateSignalStackFixture {
822820 ~AlternateSignalStackFixture () {
823821 stack_t test_stack = {};
824822 // Resume to the old signal stack.
825- FUZZTEST_CHECK (sigaltstack (&old_stack, &test_stack) == 0 ) << errno ;
823+ FUZZTEST_PCHECK (sigaltstack (&old_stack, &test_stack) == 0 );
826824 free (test_stack.ss_sp );
827825 }
828826
0 commit comments