From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8441 invoked by alias); 29 Aug 2007 18:40:44 -0000 Received: (qmail 8434 invoked by uid 22791); 29 Aug 2007 18:40:42 -0000 X-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,DK_POLICY_SIGNSOME,FORGED_RCVD_HELO,SPF_HELO_PASS,SPF_PASS,TW_FH X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 29 Aug 2007 18:40:35 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.1/8.13.1) with ESMTP id l7TIeM5p004935 for ; Wed, 29 Aug 2007 14:40:22 -0400 Received: from pobox.toronto.redhat.com (pobox.toronto.redhat.com [172.16.14.4]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l7TIeLUF009679 for ; Wed, 29 Aug 2007 14:40:21 -0400 Received: from localhost.localdomain (vpn-14-123.rdu.redhat.com [10.11.14.123]) by pobox.toronto.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id l7TIeKKj029654 for ; Wed, 29 Aug 2007 14:40:20 -0400 Message-ID: <46D5BD8F.8070003@redhat.com> Date: Wed, 29 Aug 2007 18:40:00 -0000 From: Adam Jocksch User-Agent: Thunderbird 2.0.0.4 (X11/20070615) MIME-Version: 1.0 To: frysk Subject: Trouble with frysk.expunit.Expect and fhpd Content-Type: multipart/mixed; boundary="------------090202080300050406000001" X-Virus-Checked: Checked by ClamAV on sourceware.org 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: 2007-q3/txt/msg00366.txt.bz2 This is a multi-part message in MIME format. --------------090202080300050406000001 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 672 I've been trying to re-tool frysk.hpd.TestDisplayCommand to use funit-rt-varchange instead of hpd-c (bug #4951). However, the expect script fails when fhpd doesn't behave as expected when adding a breakpoint. I've attached the revised version of TestDisplayCommand.java as well as the log created by ./TestRunner -log frysk=FINE frysk.hpd.TestDisplayCommand. Running 'frysk/bindir/fhpd frysk/pkglibdir/funit-rt-varchange' from the frysk-core directory produces the expected results; it's only under Expect that fhpd is functioning strangely. I've also had fhpd hang when creating a display under expect, but I'm currently unable to reproduce that problem. Adam --------------090202080300050406000001 Content-Type: text/plain; name="frysk_core_event.log.28" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="frysk_core_event.log.28" Content-length: 2855 dGVzdEhwZERpc3BsYXlDb21tYW5kcyhmcnlzay5ocGQuVGVzdERpc3BsYXlD b21tYW5kKSAtLS0tIHN0YXJ0VGVzdCAtLS0tCmZyeXNrLmV4cHVuaXQuRXhw ZWN0QDIxOWQzOCBuZXcgL2Rldi9wdHMvMyBwaWQgNzU1MSBhcmdzIFsvaG9t ZS9ham9ja3NjaC9idWlsZC9mcnlzay9mcnlzay1jb3JlL2ZyeXNrL2JpbmRp ci9maHBkLCAvaG9tZS9ham9ja3NjaC9idWlsZC9mcnlzay9mcnlzay1jb3Jl L2ZyeXNrL3BrZ2xpYmRpci9mdW5pdC1ydC12YXJjaGFuZ2VdCmZyeXNrLmV4 cHVuaXQuRXhwZWN0QDIxOWQzOCBmaW5kIDw8XChmaHBkXCkgPj4gaW4gPDw+ Pj8KZnJ5c2suZXhwdW5pdC5FeHBlY3RAMjE5ZDM4IHBvbGwgZm9yIDUwMDAg bWlsbGlzZWNvbmRzCmZyeXNrLmV4cHVuaXQuRXhwZWN0QDIxOWQzOCBwb2xs IC0+IDw8QXR0YWNoZWQgdG8gcHJvY2VzcyA3NTU0DQooZmhwZCkgPj4gZ2l2 aW5nIDw8QXR0YWNoZWQgdG8gcHJvY2VzcyA3NTU0DQooZmhwZCkgPj4KZnJ5 c2suZXhwd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bW1hbmQpIC0tLS0gZW5kVGVzdCAtLS0tCg== --------------090202080300050406000001 Content-Type: text/x-java; name="TestDisplayCommand.java" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="TestDisplayCommand.java" Content-length: 3841 // This file is part of the program FRYSK. // // Copyright 2007 Red Hat Inc. // // FRYSK is free software; you can redistribute it and/or modify it // under the terms of the GNU General Public License as published by // the Free Software Foundation; version 2 of the License. // // FRYSK is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // General Public License for more details. // // You should have received a copy of the GNU General Public License // along with FRYSK; if not, write to the Free Software Foundation, // Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. // // In addition, as a special exception, Red Hat, Inc. gives You the // additional right to link the code of FRYSK with code not covered // under the GNU General Public License ("Non-GPL Code") and to // distribute linked combinations including the two, subject to the // limitations in this paragraph. Non-GPL Code permitted under this // exception must only link to the code of FRYSK through those well // defined interfaces identified in the file named EXCEPTION found in // the source code files (the "Approved Interfaces"). The files of // Non-GPL Code may instantiate templates or use macros or inline // functions from the Approved Interfaces without causing the // resulting work to be covered by the GNU General Public // License. Only Red Hat, Inc. may make changes or additions to the // list of Approved Interfaces. You must obey the GNU General Public // License in all respects for all of the FRYSK code and other code // used in conjunction with FRYSK except the Non-GPL Code covered by // this exception. If you modify this file, you may extend this // exception to your version of the file, but you are not obligated to // do so. If you do not wish to provide this exception without // modification, you must delete this exception statement from your // version and license this file solely under the GPL without // exception. package frysk.hpd; import frysk.expunit.Expect; import frysk.Config; public class TestDisplayCommand extends TestLib { public void testHpdDisplayCommands() { // if (unresolved(4951)) // return; e = new Expect (new String[] { Config.getBinFile("fhpd").getPath (), Config.getPkgLibFile("funit-rt-varchange").getPath () }); e.expect (prompt); // Break e.send("break #funit-rt-varchange.c#53\n"); e.expect("breakpoint.*" + prompt); e.send("go\n"); e.expect("go.*" + prompt + ".*Breakpoint.*#funit-rt-varchange.c#53.*"); e.send("display x\n"); e.expect("display.*1:.*x = .*" + prompt); e.send("display y*2\n"); e.expect("display.*2:.*temp = .*" + prompt); e.send("actionpoints -display\n"); e.expect("actionpoints.*DISPLAYS.*2.*y.*\"y.*\".*\n1.*y.*\"x\".*" + prompt); e.send("disable 1\n"); e.expect("disable.*display 1 disabled.*" + prompt); e.send("actionpoints -display\n"); e.expect("actionpoints.*DISPLAYS.*2.*y.*\"y.*\".*\n1.*n.*\"x\".*" + prompt); e.send("disable -display\n"); e.expect("disable.*display 2 disabled.*" + prompt); e.send("actionpoints -display\n"); e.expect("actionpoints.*DISPLAYS.*2.*n.*\"y.*\".*\n1.*n.*\"x\".*" + prompt); e.send("enable 2\n"); e.expect("enable.*display 2 enabled.*" + prompt); e.send("enable -display\n"); e.expect("enable.*display 1 enabled.*" + prompt); e.send("delete 1\n"); e.expect("delete.*display 1 deleted.*" + prompt); e.send("actionpoints -display\n"); e.expect("actionpoints.*DISPLAYS.*2.*y.*\"y.*\".*" + prompt); e.send("delete -display\n"); e.expect("delete.*display 2 deleted.*" + prompt); e.send("actionpoints -display\n"); e.expect("actionpoints.*" + prompt); e.send("quit\n"); e.expect("Quitting..."); e.close(); } } --------------090202080300050406000001--