You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stdcxx.apache.org by vi...@apache.org on 2008/06/02 17:55:50 UTC
svn commit: r662468 -
/stdcxx/branches/4.2.x/tests/regress/18.limits.traps.stdcxx-624.cpp
Author: vitek
Date: Mon Jun 2 08:55:50 2008
New Revision: 662468
URL: http://svn.apache.org/viewvc?rev=662468&view=rev
Log:
2008-06-02 Travis Vitek <vi...@roguewave.com>
* tests/regress/18.limits.traps.stdcxx-624.cpp: Update comments to
reflect expected test behavior.
Modified:
stdcxx/branches/4.2.x/tests/regress/18.limits.traps.stdcxx-624.cpp
Modified: stdcxx/branches/4.2.x/tests/regress/18.limits.traps.stdcxx-624.cpp
URL: http://svn.apache.org/viewvc/stdcxx/branches/4.2.x/tests/regress/18.limits.traps.stdcxx-624.cpp?rev=662468&r1=662467&r2=662468&view=diff
==============================================================================
--- stdcxx/branches/4.2.x/tests/regress/18.limits.traps.stdcxx-624.cpp (original)
+++ stdcxx/branches/4.2.x/tests/regress/18.limits.traps.stdcxx-624.cpp Mon Jun 2 08:55:50 2008
@@ -79,17 +79,19 @@
bool trapped = false;
// if this traps (generates SIGFPE), verify (in the signal handler)
- // that integer arithmetic is expected to trap
+ // that integer arithmetic is expected to trap. if this doesn't trap
+ // then we are either on windows, or traps are disabled.
TRY {
result = non_zero / zero;
result += non_zero % zero;
}
EXCEPT (1) {
+ // windows structured exception caught
trapped = true;
}
- // if we get this far, verify that integer arithmetic is known not
- // to trap
+ // if we get this far, verify that we have caught a structured
+ // exception or integer arithmetic is known not to trap
assert (trapped == std::numeric_limits<int>::traps);
(void)&result;