Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Sep 2012 01:24:19 +0000 (UTC)
From:      Rui Paulo <rpaulo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r240154 - in head/lib/libproc/test: t1-bkpt t3-name2sym
Message-ID:  <201209060124.q861OJs2035604@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <stdio.h>
 #include <libproc.h>
 #include <gelf.h>
+#include <string.h>
 
 int
 main(int argc, char *argv[])



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201209060124.q861OJs2035604>