diff options
author | Mike Frysinger <vapier@gentoo.org> | 2009-10-25 05:24:55 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2009-10-25 05:24:55 -0400 |
commit | 71860f134425a0a22b1a16d80e20dcc632b94b33 (patch) | |
tree | fb3103eab3eb0e4627340adddec97ef94f050168 /tests/test-skel-0.c | |
parent | libsandbox: fix ptrace decode of utimensat (diff) | |
download | sandbox-71860f134425a0a22b1a16d80e20dcc632b94b33.tar.gz sandbox-71860f134425a0a22b1a16d80e20dcc632b94b33.tar.bz2 sandbox-71860f134425a0a22b1a16d80e20dcc632b94b33.zip |
tests: add reverse lookup funcs
This way we can include the C names in the default output.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'tests/test-skel-0.c')
-rw-r--r-- | tests/test-skel-0.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/test-skel-0.c b/tests/test-skel-0.c index 95d229e..220f77c 100644 --- a/tests/test-skel-0.c +++ b/tests/test-skel-0.c @@ -147,14 +147,15 @@ int main(int argc, char *argv[]) printf( "%s%s%s: " SFUNC "(" FUNC_STR ") = " "%s%li (wanted %li)%s; " - "%serrno = %i [%s] (wanted %i [%s])%s\n", + "%serrno = %s:%i [%s] (wanted %s:%i [%s])%s\n", COLOR(passed), passed ? "PASS" : "FAIL", color_normal, FUNC_IMP, (passed ? "" : COLOR(passed_ret)), actual_ret, want_ret, color_normal, (!passed && want_errno) ? COLOR(passed_errno) : "", - actual_errno, strerror(actual_errno), - want_errno, strerror(want_errno), color_normal); + rev_lookup_errno(actual_errno), actual_errno, strerror(actual_errno), + rev_lookup_errno(want_errno), want_errno, strerror(want_errno), + color_normal); if (!passed) ++test_ret; } |