public inbox for frysk-cvs@sourceware.org
help / color / mirror / Atom feed
* [SCM]  master: When logging,  dump the error's stack.
@ 2008-03-11 19:06 cagney
  0 siblings, 0 replies; only message in thread
From: cagney @ 2008-03-11 19:06 UTC (permalink / raw)
  To: frysk-cvs

The branch, master has been updated
       via  43df9a4df62a43b27be1b15451df67d42e37f896 (commit)
      from  0f1f609d057c1afc52062ca7ac54cedad7beb08c (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email.

- Log -----------------------------------------------------------------
commit 43df9a4df62a43b27be1b15451df67d42e37f896
Author: Andrew Cagney <cagney@redhat.com>
Date:   Tue Mar 11 15:05:48 2008 -0400

    When logging,  dump the error's stack.
    
    frysk-sys/frysk/junit/ChangeLog
    2008-03-11  Andrew Cagney  <cagney@redhat.com>
    
    	* Results.java (addProblem()): When logging, print throwable stack.

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

Summary of changes:
 frysk-sys/frysk/junit/ChangeLog    |    4 ++++
 frysk-sys/frysk/junit/Results.java |    6 ++++++
 2 files changed, 10 insertions(+), 0 deletions(-)

First 500 lines of diff:
diff --git a/frysk-sys/frysk/junit/ChangeLog b/frysk-sys/frysk/junit/ChangeLog
index 0368a31..c8d2031 100644
--- a/frysk-sys/frysk/junit/ChangeLog
+++ b/frysk-sys/frysk/junit/ChangeLog
@@ -1,3 +1,7 @@
+2008-03-11  Andrew Cagney  <cagney@redhat.com>
+
+	* Results.java (addProblem()): When logging, print throwable stack.
+
 2008-03-03  Andrew Cagney  <cagney@redhat.com>
 
 	* TestCase.java (compilerVersionGreaterThanOrEqualTo()): Delete.
diff --git a/frysk-sys/frysk/junit/Results.java b/frysk-sys/frysk/junit/Results.java
index 5a0de0e..d66b94e 100644
--- a/frysk-sys/frysk/junit/Results.java
+++ b/frysk-sys/frysk/junit/Results.java
@@ -73,6 +73,12 @@ class Results extends ResultPrinter {
     private void addProblem(Test test, String name, String what, Throwable t) {
 	fine.log("---- addProblem ----", test, "---", name, "---", what,
 		 ":", t);
+	if (fine.logging()) {
+	    StackTraceElement[] stack = t.getStackTrace();
+	    for (int i = 0; i < stack.length; i++) {
+		fine.log(stack[i].toString());
+	    }
+	}
 	// If a problem was previously recorded, move it to the
 	// unresolved set.
 	if (result != Result.PASS) {


hooks/post-receive
--
frysk system monitor/debugger


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-03-11 19:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-11 19:06 [SCM] master: When logging, dump the error's stack cagney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).