public inbox for frysk-cvs@sourceware.org
help / color / mirror / Atom feed
From: cagney@sourceware.org
To: frysk-cvs@sourceware.org
Subject: [SCM]  master: When logging,  dump the error's stack.
Date: Tue, 11 Mar 2008 19:06:00 -0000	[thread overview]
Message-ID: <20080311190638.22184.qmail@sourceware.org> (raw)

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


                 reply	other threads:[~2008-03-11 19:06 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080311190638.22184.qmail@sourceware.org \
    --to=cagney@sourceware.org \
    --cc=frysk-cvs@sourceware.org \
    --cc=frysk@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).