public inbox for frysk-cvs@sourceware.org help / color / mirror / Atom feed
From: pmuldoon@sourceware.org To: frysk-cvs@sourceware.org Subject: [SCM] master: Use DaemonBlockedAtSignal in test. Date: Thu, 15 Nov 2007 15:30:00 -0000 [thread overview] Message-ID: <20071115153008.6223.qmail@sourceware.org> (raw) The branch, master has been updated via efc98011cc2d005c62da7050c720e037a9c22944 (commit) from adb971cd44b8398b4f64cecb699ff2c3be8620aa (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email. - Log ----------------------------------------------------------------- commit efc98011cc2d005c62da7050c720e037a9c22944 Author: Phil Muldoon <pmuldoon@redhat.com> Date: Thu Nov 15 15:29:59 2007 +0000 Use DaemonBlockedAtSignal in test. 2007-11-15 pmuldoon <pmuldoon@redhat.com> * TestLinuxCore.java (testLinuxCoreFileStackTrace): Use DaemonBlockedAtSignal. Create live map first, then core. ----------------------------------------------------------------------- Summary of changes: frysk-core/frysk/proc/dead/ChangeLog | 5 +++++ frysk-core/frysk/proc/dead/TestLinuxCore.java | 22 ++++++++++++++-------- 2 files changed, 19 insertions(+), 8 deletions(-) First 500 lines of diff: diff --git a/frysk-core/frysk/proc/dead/ChangeLog b/frysk-core/frysk/proc/dead/ChangeLog index 620bb64..617b310 100644 --- a/frysk-core/frysk/proc/dead/ChangeLog +++ b/frysk-core/frysk/proc/dead/ChangeLog @@ -1,3 +1,8 @@ +2007-11-15 pmuldoon <pmuldoon@redhat.com> + + * TestLinuxCore.java (testLinuxCoreFileStackTrace): Use DaemonBlockedAtSignal. + Create live map first, then core. + 2007-11-08 Phil Muldoon <pmuldoon@redhat.com> * LinuxHost.java (LinuxHost): Check for null Elf Header diff --git a/frysk-core/frysk/proc/dead/TestLinuxCore.java b/frysk-core/frysk/proc/dead/TestLinuxCore.java index c099f00..ec376cf 100644 --- a/frysk-core/frysk/proc/dead/TestLinuxCore.java +++ b/frysk-core/frysk/proc/dead/TestLinuxCore.java @@ -51,6 +51,7 @@ import frysk.proc.Task; import frysk.proc.Proc; import frysk.proc.Host; import frysk.proc.Auxv; +import frysk.testbed.DaemonBlockedAtSignal; import frysk.testbed.TestLib; import frysk.proc.ProcId; import frysk.proc.Manager; @@ -136,14 +137,11 @@ public class TestLinuxCore public void testLinuxCoreFileStackTrace () { - Proc ackProc = giveMeAProc(); - String coreFileName = constructCore(ackProc); - File xtestCore = new File(coreFileName); - - Host lcoreHost = new LinuxHost(Manager.eventLoop, - xtestCore); - - Proc coreProc = lcoreHost.getProc(new ProcId(ackProc.getPid())); + + final Proc ackProc; // = giveMeAProc(); + + File exeFile = Config.getPkgLibFile("funit-stacks"); + ackProc = new DaemonBlockedAtSignal(exeFile).getMainTask().getProc(); StacktraceAction stacker; @@ -162,6 +160,14 @@ public class TestLinuxCore new ProcBlockAction (ackProc, stacker); assertRunUntilStop("perform backtrace"); + String coreFileName = constructCore(ackProc); + File xtestCore = new File(coreFileName); + + Host lcoreHost = new LinuxHost(Manager.eventLoop, + xtestCore); + + Proc coreProc = lcoreHost.getProc(new ProcId(ackProc.getPid())); + StringWriter stringWriter2 = new StringWriter(); coreStack = new StacktraceAction(new PrintWriter(stringWriter2),coreProc, new PrintEvent(),true,false,false,false,false, false) { hooks/post-receive -- frysk system monitor/debugger
reply other threads:[~2007-11-15 15:30 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=20071115153008.6223.qmail@sourceware.org \ --to=pmuldoon@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: linkBe 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).