public inbox for frysk-cvs@sourceware.org
help / color / mirror / Atom feed
* [SCM]  master: Use DaemonBlockedAtSignal in test.
@ 2007-11-15 15:30 pmuldoon
  0 siblings, 0 replies; only message in thread
From: pmuldoon @ 2007-11-15 15:30 UTC (permalink / raw)
  To: frysk-cvs

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


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

only message in thread, other threads:[~2007-11-15 15:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-15 15:30 [SCM] master: Use DaemonBlockedAtSignal in test pmuldoon

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).