From owner-svn-src-head@FreeBSD.ORG Thu Sep 6 01:24:19 2012 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8E2EE106564A; Thu, 6 Sep 2012 01:24:19 +0000 (UTC) (envelope-from rpaulo@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 78F7D8FC17; Thu, 6 Sep 2012 01:24:19 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q861OJar035608; Thu, 6 Sep 2012 01:24:19 GMT (envelope-from rpaulo@svn.freebsd.org) Received: (from rpaulo@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q861OJs2035604; Thu, 6 Sep 2012 01:24:19 GMT (envelope-from rpaulo@svn.freebsd.org) Message-Id: <201209060124.q861OJs2035604@svn.freebsd.org> From: Rui Paulo Date: Thu, 6 Sep 2012 01:24:19 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r240154 - in head/lib/libproc/test: t1-bkpt t3-name2sym X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Sep 2012 01:24:19 -0000 Author: rpaulo Date: Thu Sep 6 01:24:18 2012 New Revision: 240154 URL: http://svn.freebsd.org/changeset/base/240154 Log: Fix test cases to work with the latest version of the API. Modified: head/lib/libproc/test/t1-bkpt/t1-bkpt.c head/lib/libproc/test/t3-name2sym/t3-name2sym.c Modified: head/lib/libproc/test/t1-bkpt/t1-bkpt.c ============================================================================== --- head/lib/libproc/test/t1-bkpt/t1-bkpt.c Wed Sep 5 23:07:02 2012 (r240153) +++ head/lib/libproc/test/t1-bkpt/t1-bkpt.c Thu Sep 6 01:24:18 2012 (r240154) @@ -50,12 +50,12 @@ t1_bkpt_d() unsigned long saved; proc_create("./t1-bkpt", targv, NULL, NULL, &phdl); - proc_bkptset(phdl, (uintptr_t)t1_bkpt_t, &saved); + assert(proc_bkptset(phdl, (uintptr_t)t1_bkpt_t, &saved) == 0); proc_continue(phdl); - assert(WIFSTOPPED(proc_wstatus(phdl))); + assert(proc_wstatus(phdl) == PS_STOP); proc_bkptexec(phdl, saved); proc_continue(phdl); - proc_wait(phdl); + proc_wstatus(phdl); proc_free(phdl); } Modified: head/lib/libproc/test/t3-name2sym/t3-name2sym.c ============================================================================== --- head/lib/libproc/test/t3-name2sym/t3-name2sym.c Wed Sep 5 23:07:02 2012 (r240153) +++ head/lib/libproc/test/t3-name2sym/t3-name2sym.c Thu Sep 6 01:24:18 2012 (r240154) @@ -33,6 +33,7 @@ #include #include #include +#include int main(int argc, char *argv[])