From 095a719ae079ce5f8c28440e358df963eeec0618 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Thu, 10 Jun 2010 11:27:47 +0200 Subject: Print correct return code Fixes: #535 --- src/tests/check_and_open-tests.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tests') diff --git a/src/tests/check_and_open-tests.c b/src/tests/check_and_open-tests.c index e3d98868..59879cc9 100644 --- a/src/tests/check_and_open-tests.c +++ b/src/tests/check_and_open-tests.c @@ -98,7 +98,7 @@ START_TEST(test_symlink) ret); ret = symlink(filename, newpath); - fail_unless(ret == 0, "symlink failed [%d][%s]", ret, strerror(ret)); + fail_unless(ret == 0, "symlink failed [%d][%s]", ret, strerror(errno)); ret = check_file(newpath, uid, gid, mode, CHECK_REG, NULL); unlink(newpath); -- cgit