diff options
author | rpaulo <rpaulo@FreeBSD.org> | 2012-09-06 01:24:18 +0000 |
---|---|---|
committer | rpaulo <rpaulo@FreeBSD.org> | 2012-09-06 01:24:18 +0000 |
commit | 8a9203f2f0c64a5ce9239e8c20fc5b3489669c06 (patch) | |
tree | 15dfe4d311bc35dcb5d4bae3919b19104e26aaaf /lib/libproc/test/t1-bkpt | |
parent | 66a2965d992ccd22edf4992e94fd9adab1bc9dfb (diff) | |
download | FreeBSD-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/test/t1-bkpt')
-rw-r--r-- | lib/libproc/test/t1-bkpt/t1-bkpt.c | 6 |
1 files changed, 3 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); } |