Fix test cases to work with the latest version of the API.
This commit is contained in:
parent
104d19a8c3
commit
202f1c2c8d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=240154
@ -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);
|
||||
}
|
||||
|
||||
|
@ -33,6 +33,7 @@
|
||||
#include <stdio.h>
|
||||
#include <libproc.h>
|
||||
#include <gelf.h>
|
||||
#include <string.h>
|
||||
|
||||
int
|
||||
main(int argc, char *argv[])
|
||||
|
Loading…
Reference in New Issue
Block a user