CTest: generates bad tarballs for files outside the binary directory
CTest generates broken tarballs when attempting to use the ATTACHED_FILES test property to point to a file outside the build tree.
Here's a minimal reproducer:
Here's the test on CDash (until it expires):
https://my.cdash.org/test/34151416
Clicking on the yellow block allows you to download nested_list.svg.tgz
, but attempting to extract it locally fails
$ tar -zxvf nested_list.svg.tgz
x ../src/nested_list.svg: Path contains '..'
tar: Error exit delayed from previous errors.