public inbox for frysk-cvs@sourceware.org
help / color / mirror / Atom feed
From: cagney@sourceware.org
To: frysk-cvs@sourceware.org
Subject: [SCM]  master: Switching to StopEventLoopWhenProcTerminated.
Date: Thu, 13 Mar 2008 20:27:00 -0000	[thread overview]
Message-ID: <20080313202751.11264.qmail@sourceware.org> (raw)

The branch, master has been updated
       via  7db59f35b3cae9f519920db4132c6bc31a43af78 (commit)
      from  14c618d591647a1efe0d8e53186d88f1c56d7615 (commit)

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

- Log -----------------------------------------------------------------
commit 7db59f35b3cae9f519920db4132c6bc31a43af78
Author: Andrew Cagney <cagney@redhat.com>
Date:   Thu Mar 13 16:27:08 2008 -0400

    Switching to StopEventLoopWhenProcTerminated.
    
    frysk-core/frysk/proc/ChangeLog
    2008-03-13  Andrew Cagney  <cagney@redhat.com>
    
    	* TestTaskSyscallObserver.java: Use
    	StopEventLoopWhenProcTerminated.

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

Summary of changes:
 frysk-core/frysk/proc/ChangeLog                    |    3 ++
 frysk-core/frysk/proc/TestTaskSyscallObserver.java |   21 +++++--------------
 2 files changed, 9 insertions(+), 15 deletions(-)

First 500 lines of diff:
diff --git a/frysk-core/frysk/proc/ChangeLog b/frysk-core/frysk/proc/ChangeLog
index a959021..874d507 100644
--- a/frysk-core/frysk/proc/ChangeLog
+++ b/frysk-core/frysk/proc/ChangeLog
@@ -1,5 +1,8 @@
 2008-03-13  Andrew Cagney  <cagney@redhat.com>
 
+	* TestTaskSyscallObserver.java: Use
+	StopEventLoopWhenProcTerminated.
+
 	* TestTaskTerminateObserver.java: Do not use
 	StopEventLoopWhenProcRemoved.
 
diff --git a/frysk-core/frysk/proc/TestTaskSyscallObserver.java b/frysk-core/frysk/proc/TestTaskSyscallObserver.java
index 2ff9d0c..14975c8 100644
--- a/frysk-core/frysk/proc/TestTaskSyscallObserver.java
+++ b/frysk-core/frysk/proc/TestTaskSyscallObserver.java
@@ -54,7 +54,7 @@ import frysk.sys.Pid;
 import frysk.sys.Signal;
 import frysk.testbed.TestLib;
 import frysk.testbed.SlaveOffspring;
-import frysk.testbed.StopEventLoopWhenProcRemoved;
+import frysk.testbed.StopEventLoopWhenProcTerminated;
 import frysk.testbed.TaskObserverBase;
 import frysk.testbed.DaemonBlockedAtEntry;
 import frysk.testbed.IsaTestbed;
@@ -260,9 +260,7 @@ public class TestTaskSyscallObserver extends TestLib {
     child.getMainTask().requestAddSyscallsObserver(syscallObserver);
     assertRunUntilStop("add SyscallObserver");
 
-    // XXX: This is wrong; the task isn't a child so this will
-    // never work. What about assertRunUntilTaskRemoved (...)?
-    new StopEventLoopWhenProcRemoved(child);
+    new StopEventLoopWhenProcTerminated(child);
     child.requestRemoveBlock();
     assertRunUntilStop("run until program exits");
 
@@ -343,9 +341,6 @@ public class TestTaskSyscallObserver extends TestLib {
    */
   public void testSyscalls ()
   {
-    // if (unresolved (2245))
-    // return;
-
     // Create program making syscalls
     DaemonBlockedAtEntry child
 	= new DaemonBlockedAtEntry(Config.getPkgLibFile("funit-syscalls"));
@@ -356,9 +351,7 @@ public class TestTaskSyscallObserver extends TestLib {
     child.getMainTask().requestAddSyscallsObserver(syscallObserver);
     assertRunUntilStop("add SyscallObserver");
 
-    // XXX: This is wrong; the task isn't a child so this will
-    // never work. What about assertRunUntilTaskRemoved (...)?
-    new StopEventLoopWhenProcRemoved(child);
+    new StopEventLoopWhenProcTerminated(child);
     child.requestRemoveBlock();
     assertRunUntilStop("run until program exits");
 
@@ -424,7 +417,7 @@ public class TestTaskSyscallObserver extends TestLib {
       // Create program making syscalls
       DaemonBlockedAtEntry child
 	  = new DaemonBlockedAtEntry(Config.getPkgLibFile("funit-syscalls"));
-      new StopEventLoopWhenProcRemoved(child);
+      new StopEventLoopWhenProcTerminated(child);
 
     SyscallOpenObserver syscallOpenObserver = new SyscallOpenObserver(
                                                                       child.getMainTask());
@@ -578,12 +571,10 @@ public class TestTaskSyscallObserver extends TestLib {
    */
   public void testSyscallInterrupt ()
   {
-    // if (unresolved (2245))
-    // return;
     PipeReadChild prc = new PipeReadChild(false);
 
     TestSyscallInterruptXXX t = new TestSyscallInterruptXXX(prc.getPid().intValue());
-    new StopEventLoopWhenProcRemoved(prc.getPid());
+    new StopEventLoopWhenProcTerminated(prc.getPid());
 
     assertRunUntilStop("run \"syscallint\" until exit");
     assertEquals("read enter events", 1, t.readEnter);
@@ -601,7 +592,7 @@ public class TestTaskSyscallObserver extends TestLib {
     PipeReadChild prc = new PipeReadChild(true);
 
     TestSyscallInterruptXXX t = new TestSyscallInterruptXXX(prc.getPid().intValue());
-    new StopEventLoopWhenProcRemoved(prc.getPid());
+    new StopEventLoopWhenProcTerminated(prc.getPid());
 
     assertRunUntilStop("run \"syscallint\" with restart until exit");
     assertEquals("restart read enter events", 2, t.readEnter);


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


             reply	other threads:[~2008-03-13 20:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-13 20:27 cagney [this message]
  -- strict thread matches above, loose matches on Subject: below --
2008-03-13 19:44 cagney

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