diff options
author | Christopher Faylor <me@cgf.cx> | 2006-01-02 04:01:22 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2006-01-02 04:01:22 +0000 |
commit | b0b9ccf6181f75f4c1363e3a8d65a0b9ebda63d5 (patch) | |
tree | 63f129e52509aa6e19d0e7a2fc1def21460e41e9 | |
parent | 590129475beb69558896c8e0f278feaddb0174ef (diff) | |
download | newlib-b0b9ccf6181f75f4c1363e3a8d65a0b9ebda63d5.zip newlib-b0b9ccf6181f75f4c1363e3a8d65a0b9ebda63d5.tar.gz newlib-b0b9ccf6181f75f4c1363e3a8d65a0b9ebda63d5.tar.bz2 |
* winsup.api/resethand.c (main): Remove core dump flag from exit status.
-rw-r--r-- | winsup/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/testsuite/winsup.api/resethand.c | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/winsup/testsuite/ChangeLog b/winsup/testsuite/ChangeLog index d766011..6ed7c39 100644 --- a/winsup/testsuite/ChangeLog +++ b/winsup/testsuite/ChangeLog @@ -1,5 +1,10 @@ 2006-01-01 Christopher Faylor <cgf@timesys.com> + * winsup.api/resethand.c (main): Remove core dump flag from exit + status. + +2006-01-01 Christopher Faylor <cgf@timesys.com> + * winsup.api/resethand.c (main): Coerce argument to pointer to stop gcc complaint. diff --git a/winsup/testsuite/winsup.api/resethand.c b/winsup/testsuite/winsup.api/resethand.c index b2010cf..2d1ccab 100644 --- a/winsup/testsuite/winsup.api/resethand.c +++ b/winsup/testsuite/winsup.api/resethand.c @@ -31,6 +31,7 @@ main (int argc, char **argv) *i = 9; exit (0x42); } + status &= ~0x80; // remove core dump flag fprintf (stderr, "pid %d exited with status %p\n", pid, (void *) status); exit (argc == 1 ? !(status == SIGSEGV) : !(status == SIGTERM)); } |