Fix test cases to work with the latest version of the API.

This commit is contained in:
Rui Paulo 2012-09-06 01:24:18 +00:00
parent 104d19a8c3
commit 202f1c2c8d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=240154
2 changed files with 4 additions and 3 deletions

View File

@ -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);
}

View File

@ -33,6 +33,7 @@
#include <stdio.h>
#include <libproc.h>
#include <gelf.h>
#include <string.h>
int
main(int argc, char *argv[])