From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27792 invoked by alias); 26 Mar 2008 12:36:41 -0000 Received: (qmail 27785 invoked by uid 22791); 26 Mar 2008 12:36:41 -0000 X-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from wildebeest.demon.nl (HELO gnu.wildebeest.org) (83.160.170.119) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 26 Mar 2008 12:36:19 +0000 Received: from dijkstra.wildebeest.org ([192.168.1.29]) by gnu.wildebeest.org with esmtp (Exim 4.63) (envelope-from ) id 1JeUrY-0007QV-Gd; Wed, 26 Mar 2008 13:36:17 +0100 Subject: Re: How to send signals to test programs? From: Mark Wielaard To: Nurdin Premji Cc: frysk In-Reply-To: <47E9AA37.3080908@redhat.com> References: <47E9AA37.3080908@redhat.com> Content-Type: text/plain Date: Wed, 26 Mar 2008 12:36:00 -0000 Message-Id: <1206534976.3553.68.camel@dijkstra.wildebeest.org> Mime-Version: 1.0 X-Mailer: Evolution 2.12.3 (2.12.3-3.fc8) Content-Transfer-Encoding: 7bit X-Spam-Score: -4.4 (----) X-IsSubscribed: yes Mailing-List: contact frysk-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: frysk-owner@sourceware.org X-SW-Source: 2008-q1/txt/msg00184.txt.bz2 Hi Nurdin, On Tue, 2008-03-25 at 21:43 -0400, Nurdin Premji wrote: > Trying to create a test for stepping over and through signals. I have a > simple the test program and I'm copying testcases from > frysk-core/frysk/stepping/TestStepping.java > > How do I send a signal to my test program from the TestStepping test? You can deliver a signal through frysk.sys.Signal.[SIGNALNAME].kill(pid) or tkill(tid) (don't confuse that class with frysk.isa.signal.Signal). Note that you most likely also want to install an SignalObserver to monitor when your signal arrives (there is no guarantee the signal gets delivered immediately). Another method would be to let the test program deliver itself a signal, either through kill() or alarm() Cheers, Mark