commit | d8a81dfa40db3c2656a44bf428e957e63490e5c1 | [log] [tgz] |
---|---|---|
author | Dmitry V. Levin <ldv@altlinux.org> | Thu Feb 04 01:32:45 2016 +0000 |
committer | Dmitry V. Levin <ldv@altlinux.org> | Thu Feb 04 03:36:25 2016 +0000 |
tree | 60c5c0cf731c9bb019a81d4dae4d7a96dd5f04bc | |
parent | 7637b1d9e86a0882ef95db8f13d2f0f8f3db07d3 [diff] |
tests: extend readlink and readlinkat coverage * tests/readlink.c (PREFIX, TARGET, LINKPATH): New macros. (main): Allocate memory for string and buffer passed to the syscall being tested using tail_alloc mechanism. Create and cleanup test symlink. Test syscall error path output. Print hexquoted strings using hexquote_strndup. * tests/readlinkat.c: Likewise. * tests/readlink.test: Remove creation and cleanup of test symlinks.