From 1c5c60b8ad9fa2094fb03aa211d9717dd8b30f05 Mon Sep 17 00:00:00 2001 From: "hp.com!davidm" Date: Thu, 25 Sep 2003 05:08:18 +0000 Subject: [PATCH] Add some more debug statements and fix some typos. (Logical change 1.103) --- tests/test-setjmp.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/tests/test-setjmp.c b/tests/test-setjmp.c index 9b428b2e..65c343b2 100644 --- a/tests/test-setjmp.c +++ b/tests/test-setjmp.c @@ -74,7 +74,7 @@ test_setjmp (void) raise_longjmp (jbuf, 0, i + 1); - fprintf (stderr, "%s: raise_longjmp() returned unexpected\n", + fprintf (stderr, "%s: raise_longjmp() returned unexpectedly\n", __FUNCTION__); ++nerrors; } @@ -118,7 +118,7 @@ test_sigsetjmp (void) raise_siglongjmp (jbuf, 0, i + 1); - fprintf (stderr, "%s: raise_siglongjmp() returned unexpected\n", + fprintf (stderr, "%s: raise_siglongjmp() returned unexpectedly\n", __FUNCTION__); ++nerrors; } @@ -131,7 +131,11 @@ sighandler (int signal) printf ("%s: got signal %d\n", __FUNCTION__, signal); sigprocmask (SIG_BLOCK, NULL, (sigset_t *) &sigset4); + if (verbose) + printf ("%s: back from sigprocmask\n", __FUNCTION__); + siglongjmp (sigjbuf, 1); + printf ("%s: siglongjmp() returned unexpectedly!\n", __FUNCTION__); } int @@ -212,7 +216,7 @@ main (int argc, char **argv) ++nerrors; } else if (verbose) - printf ("OK: siglongjmp() leaves signal mask along when asked to\n"); + printf ("OK: siglongjmp() leaves signal mask alone when asked to\n"); } else { @@ -258,7 +262,7 @@ main (int argc, char **argv) ++nerrors; } else if (verbose) - printf ("OK: siglongjmp() leaves signal mask along when asked to\n"); + printf ("OK: siglongjmp() leaves signal mask alone when asked to\n"); } else {