tests: fix false failure with ASAN in rm-readdir-fail
commit4258e97b2d8e84df6347d9095c4f82f6649b1d9e
authorPádraig Brady <P@draigBrady.com>
Thu, 24 Nov 2016 01:26:30 +0000 (24 01:26 +0000)
committerPádraig Brady <P@draigBrady.com>
Thu, 24 Nov 2016 01:31:45 +0000 (24 01:31 +0000)
treeb700fb9637b797ff2be1b68107384b576f0e24ac
parent4954f79ad2e38e4198af301bf52c3562af39d482
tests: fix false failure with ASAN in rm-readdir-fail

* tests/rm/rm-readdir-fail.sh: ASAN correctly indicated
that fts was writing to freed memory.  This was because
we reused a single dirent in our readdir() test wrapper.
Since fts was deallocating those dirents, we now get
a new dirent for each call to our readdir wrapper.
tests/rm/rm-readdir-fail.sh