diff options
| author | Max Filippov <[email protected]> | 2015-05-04 20:17:52 +0300 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2015-05-05 10:36:53 +0200 |
| commit | c801acf1cb6ee95044d11ad8ed8ebf879db0444c (patch) | |
| tree | 8006f7d9393f18025aa67c8df38cb99866a03005 /tests/backtrace-child.c | |
| parent | 8c4aa0ef998191ed828a37190dc179b91649938a (diff) | |
Replace assert_perror with assert
assert_perror is a GNU extension, it's not provided by uClibc and it's
only used in tests. Replace it with assert.
Signed-off-by: Max Filippov <[email protected]>
Diffstat (limited to 'tests/backtrace-child.c')
| -rw-r--r-- | tests/backtrace-child.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/backtrace-child.c b/tests/backtrace-child.c index 788801c3..40e7b32d 100644 --- a/tests/backtrace-child.c +++ b/tests/backtrace-child.c @@ -154,7 +154,7 @@ stdarg (int f UNUSED, ...) if (ptraceme) { long l = ptrace (PTRACE_TRACEME, 0, NULL, NULL); - assert_perror (errno); + assert (errno == 0); assert (l == 0); } #ifdef __x86_64__ @@ -226,7 +226,7 @@ main (int argc UNUSED, char **argv) { errno = 0; long l = ptrace (PTRACE_TRACEME, 0, NULL, NULL); - assert_perror (errno); + assert (errno == 0); assert (l == 0); } if (gencore) |
