diff options
| author | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-01-04 01:45:48 +0000 |
|---|---|---|
| committer | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-01-04 01:45:48 +0000 |
| commit | 61cf5777cb1c34f07eaf9fe1f8fa166f5d6d6437 (patch) | |
| tree | ea9164dd13aa7e87ea889bab18fb70b85a99bd08 | |
| parent | e1efcac2b42de9ca6023f827f25e171c5f997d27 (diff) | |
| download | ppe42-gcc-61cf5777cb1c34f07eaf9fe1f8fa166f5d6d6437.tar.gz ppe42-gcc-61cf5777cb1c34f07eaf9fe1f8fa166f5d6d6437.zip | |
* testsuite/testsuite_hooks.cc: Use __throw_exception_again
instead of just throw.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@92881 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | libstdc++-v3/ChangeLog | 3 | ||||
| -rw-r--r-- | libstdc++-v3/testsuite/testsuite_hooks.cc | 12 |
2 files changed, 11 insertions, 4 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 453b1d00ff4..12119bf3695 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,8 @@ 2005-01-03 Mark Mitchell <mark@codesourcery.com> + * testsuite/testsuite_hooks.cc: Use __throw_exception_again + instead of just throw. + * testsuite/testsuite_hooks.cc: Update coypright and follow style guidelines. * testsuite/testsuite_hooks.h: Likewise. diff --git a/libstdc++-v3/testsuite/testsuite_hooks.cc b/libstdc++-v3/testsuite/testsuite_hooks.cc index fba22096870..4e7887bc214 100644 --- a/libstdc++-v3/testsuite/testsuite_hooks.cc +++ b/libstdc++-v3/testsuite/testsuite_hooks.cc @@ -296,13 +296,15 @@ namespace __gnu_test // Get a semaphore set with one semaphore. sem_set_ = semget(IPC_PRIVATE, 1, SEM_R | SEM_A); if (sem_set_ == -1) - throw std::runtime_error ("could not obtain semaphore set"); + __throw_exception_again + std::runtime_error ("could not obtain semaphore set"); // Initialize the semaphore. union semun val; val.val = 0; if (semctl(sem_set_, 0, SETVAL, val) == -1) - throw std::runtime_error("could not initialize semaphore"); + __throw_exception_again + std::runtime_error("could not initialize semaphore"); #else // There are no semaphores on this system. We have no way to mark // a test as "unsupported" at runtime, so we just exit, pretending @@ -327,7 +329,8 @@ namespace __gnu_test { 0, 1, 0 } }; if (semop(sem_set_, op, 1) == -1) - throw std::runtime_error("could not signal semaphore"); + __throw_exception_again + std::runtime_error("could not signal semaphore"); #endif } @@ -338,7 +341,8 @@ namespace __gnu_test { 0, -1, SEM_UNDO } }; if (semop(sem_set_, op, 1) == -1) - throw std::runtime_error("could not wait for semaphore"); + __throw_exception_again + std::runtime_error("could not wait for semaphore"); #endif } }; // namespace __gnu_test |

