summaryrefslogtreecommitdiffstats
path: root/tests/backtrace-child.c
diff options
context:
space:
mode:
authorMax Filippov <[email protected]>2015-05-04 20:17:52 +0300
committerMark Wielaard <[email protected]>2015-05-05 10:36:53 +0200
commitc801acf1cb6ee95044d11ad8ed8ebf879db0444c (patch)
tree8006f7d9393f18025aa67c8df38cb99866a03005 /tests/backtrace-child.c
parent8c4aa0ef998191ed828a37190dc179b91649938a (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.c4
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)