summaryrefslogtreecommitdiffstats
path: root/lib/libproc
diff options
context:
space:
mode:
authorrpaulo <rpaulo@FreeBSD.org>2012-09-06 01:24:18 +0000
committerrpaulo <rpaulo@FreeBSD.org>2012-09-06 01:24:18 +0000
commit8a9203f2f0c64a5ce9239e8c20fc5b3489669c06 (patch)
tree15dfe4d311bc35dcb5d4bae3919b19104e26aaaf /lib/libproc
parent66a2965d992ccd22edf4992e94fd9adab1bc9dfb (diff)
downloadFreeBSD-src-8a9203f2f0c64a5ce9239e8c20fc5b3489669c06.zip
FreeBSD-src-8a9203f2f0c64a5ce9239e8c20fc5b3489669c06.tar.gz
Fix test cases to work with the latest version of the API.
Diffstat (limited to 'lib/libproc')
-rw-r--r--lib/libproc/test/t1-bkpt/t1-bkpt.c6
-rw-r--r--lib/libproc/test/t3-name2sym/t3-name2sym.c1
2 files changed, 4 insertions, 3 deletions
diff --git a/lib/libproc/test/t1-bkpt/t1-bkpt.c b/lib/libproc/test/t1-bkpt/t1-bkpt.c
index 6b4e2fa..37a9fcf 100644
--- a/lib/libproc/test/t1-bkpt/t1-bkpt.c
+++ b/lib/libproc/test/t1-bkpt/t1-bkpt.c
@@ -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);
}
diff --git a/lib/libproc/test/t3-name2sym/t3-name2sym.c b/lib/libproc/test/t3-name2sym/t3-name2sym.c
index 6d90a48..0be8653 100644
--- a/lib/libproc/test/t3-name2sym/t3-name2sym.c
+++ b/lib/libproc/test/t3-name2sym/t3-name2sym.c
@@ -33,6 +33,7 @@
#include <stdio.h>
#include <libproc.h>
#include <gelf.h>
+#include <string.h>
int
main(int argc, char *argv[])
OpenPOWER on IntegriCloud