BIND 10 trac542, updated. 50ca3176a95f7ca760c0749d7a92634e2526369d [trac542] Add additonal comments to run_all.cc

BIND 10 source code commits bind10-changes at lists.isc.org
Thu May 12 12:18:31 UTC 2011


The branch, trac542 has been updated
       via  50ca3176a95f7ca760c0749d7a92634e2526369d (commit)
      from  08878f6bfb271301564ad307339d2599bc6d951c (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 50ca3176a95f7ca760c0749d7a92634e2526369d
Author: Stephen Morris <stephen at isc.org>
Date:   Thu May 12 13:18:06 2011 +0100

    [trac542] Add additonal comments to run_all.cc

-----------------------------------------------------------------------

Summary of changes:
 src/lib/util/unittests/run_all.cc |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/lib/util/unittests/run_all.cc b/src/lib/util/unittests/run_all.cc
index f96b274..93c90d1 100644
--- a/src/lib/util/unittests/run_all.cc
+++ b/src/lib/util/unittests/run_all.cc
@@ -47,6 +47,12 @@ run_all() {
             throw;
         }
     } else {
+        // This is a separate path for the case where the exception is not
+        // being caught.  Although the other code path re-throws the exception
+        // after catching it, there is no guarantee that the state of the
+        // stack is preserved - a compiler might have unwound the stack to
+        // the point at which the exception is caught.  This would prove
+        // awkward if trying to debug the program using a debugger.
         ret = RUN_ALL_TESTS();
     }
 




More information about the bind10-changes mailing list