public inbox for frysk-cvs@sourceware.org help / color / mirror / Atom feed
From: cagney@sourceware.org To: frysk-cvs@sourceware.org Subject: [SCM] master: Use testbed code which automatically registers tasks to teardown. Date: Wed, 12 Mar 2008 01:56:00 -0000 [thread overview] Message-ID: <20080312015615.24061.qmail@sourceware.org> (raw) The branch, master has been updated via 85a44d9747806bcf10bb63c835a9f7074cef8e7a (commit) from e5bbc3500616fc2a0d77bbc6cdfe1dd16d5a24ae (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email. - Log ----------------------------------------------------------------- commit 85a44d9747806bcf10bb63c835a9f7074cef8e7a Author: Andrew Cagney <cagney@redhat.com> Date: Tue Mar 11 21:55:23 2008 -0400 Use testbed code which automatically registers tasks to teardown. frysk-core/frysk/proc/live/ChangeLog 2008-03-11 Andrew Cagney <cagney@redhat.com> * TestTaskObserverCode.java: Do not use Host.requestCreateAttachedProc and StopEventLoopWhenChildProcRemoved. ----------------------------------------------------------------------- Summary of changes: frysk-core/frysk/proc/live/ChangeLog | 4 ++++ .../frysk/proc/live/TestTaskObserverCode.java | 16 +++++----------- 2 files changed, 9 insertions(+), 11 deletions(-) First 500 lines of diff: diff --git a/frysk-core/frysk/proc/live/ChangeLog b/frysk-core/frysk/proc/live/ChangeLog index db02f13..efa024e 100644 --- a/frysk-core/frysk/proc/live/ChangeLog +++ b/frysk-core/frysk/proc/live/ChangeLog @@ -1,5 +1,9 @@ 2008-03-11 Andrew Cagney <cagney@redhat.com> + * TestTaskObserverCode.java: Do not use + Host.requestCreateAttachedProc and + StopEventLoopWhenChildProcRemoved. + * LinuxPtraceProcState.java: Use LogFactory. * TestTaskObserverBlocked.java: Register offspring with diff --git a/frysk-core/frysk/proc/live/TestTaskObserverCode.java b/frysk-core/frysk/proc/live/TestTaskObserverCode.java index d38a6b2..bce0c7f 100644 --- a/frysk-core/frysk/proc/live/TestTaskObserverCode.java +++ b/frysk-core/frysk/proc/live/TestTaskObserverCode.java @@ -65,7 +65,7 @@ import frysk.proc.MemoryMap; import java.util.Collection; import java.util.Arrays; import java.util.Iterator; -import frysk.testbed.StopEventLoopWhenProcRemoved; +import frysk.testbed.StopEventLoopWhenProcTerminated; import lib.dwfl.ElfException; import java.util.ArrayList; import lib.dwfl.Elf; @@ -418,14 +418,8 @@ public class TestTaskObserverCode extends TestLib for (int i = 1; i < argc + 1; i++) command[i] = Integer.toString(i); - AttachedObserver ao = new AttachedObserver(); - Manager.host.requestCreateAttachedProc("/dev/null", - "/dev/null", - "/dev/null", command, ao); - assertRunUntilStop("attach then block"); - assertTrue("AttachedObserver got Task", ao.task != null); - - task = ao.task; + DaemonBlockedAtEntry daemon = new DaemonBlockedAtEntry(command); + task = daemon.getMainTask(); long address = getGlobalLabelAddress(label); CodeObserver code = new CodeObserver(task, address); @@ -433,7 +427,7 @@ public class TestTaskObserverCode extends TestLib assertRunUntilStop("add breakpoint observer"); // Delete and unblock - task.requestDeleteAttachedObserver(ao); + daemon.requestRemoveBlock(); assertRunUntilStop("wait for breakpoint hit"); SignaledObserver so = new SignaledObserver(); @@ -910,7 +904,7 @@ public class TestTaskObserverCode extends TestLib task.requestAddTerminatingObserver(terminatingObserver); assertRunUntilStop("add terminating observer"); - new StopEventLoopWhenProcRemoved(child); + new StopEventLoopWhenProcTerminated(child); child.requestRemoveBlock(); assertRunUntilStop("run \"fork\" until exit"); assertTrue("breakpoint hit", code1.hit); hooks/post-receive -- frysk system monitor/debugger
reply other threads:[~2008-03-12 1:56 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=20080312015615.24061.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: 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).