diff options
| author | Mark Wielaard <[email protected]> | 2019-01-31 23:18:25 +0100 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2019-01-31 23:18:25 +0100 |
| commit | fe7d3f3635e66fe8ec1fde91f886857b0dea7d22 (patch) | |
| tree | 1bb348012cb33abad91781d6cd02dcbda75acb56 /tests/backtrace-child.c | |
| parent | cfaf954701fdb74f8d1da2a8f8f4ddb666e39b34 (diff) | |
tests: Remove assert (errno == 0) from tests.
When a function fails it might set errno. But it isn't a guarantee
that if a function succeeds that it sets errno to zero.
Signed-off-by: Mark Wielaard <[email protected]>
Diffstat (limited to 'tests/backtrace-child.c')
| -rw-r--r-- | tests/backtrace-child.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/backtrace-child.c b/tests/backtrace-child.c index 9c6ba94f..8bfed478 100644 --- a/tests/backtrace-child.c +++ b/tests/backtrace-child.c @@ -164,7 +164,6 @@ stdarg (int f UNUSED, ...) if (ptraceme) { long l = ptrace (PTRACE_TRACEME, 0, NULL, NULL); - assert (errno == 0); assert (l == 0); } #ifdef RAISE_JMP_PATCHING @@ -236,7 +235,6 @@ main (int argc UNUSED, char **argv) { errno = 0; long l = ptrace (PTRACE_TRACEME, 0, NULL, NULL); - assert (errno == 0); assert (l == 0); } if (gencore) |
