]> granicus.if.org Git - strace/commit
tests: fix xattr.test for the case when listxattr returns a long list
authorDmitry V. Levin <ldv@altlinux.org>
Thu, 22 Dec 2016 22:34:23 +0000 (22:34 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Thu, 22 Dec 2016 23:11:02 +0000 (23:11 +0000)
commitd9d92cf220d99ba4354f564f2edb46445f4da91b
treef4b75a40e20b199283a20cac490f1549856198f5
parent2aa03c2af62b54ca3c5ed458f215c06f3dac5275
tests: fix xattr.test for the case when listxattr returns a long list

* tests/xattr.c (DEFAULT_STRLEN): New macro.
(main): Use it to limit the length passed to print_quoted_memory.
Print ellipsis when the list returned by listxattr is too long.
tests/xattr.c