Daniel P. Berrangé 29c4a3c753 tests: avoid referencing stale readdir pointer
The contents of 'struct dirent' are only valid until the next call to
readdir() or closedir(). It is thus invalid to save a pointer to the
'd_name' field. Somehow this hasn't affected the test suite until
recently when FreeBSD 12 started showing use of uninitialized memory
resulting in test failures.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2020-02-07 14:57:59 +00:00
..
2019-12-13 14:57:32 +01:00
2020-02-06 13:41:03 +01:00
2020-02-04 14:00:45 +00:00
2019-10-15 11:25:25 +02:00
2019-10-15 11:25:25 +02:00
2019-10-16 12:06:44 +02:00
2019-10-15 11:25:25 +02:00
2020-02-03 19:44:38 +01:00
2019-10-15 11:25:25 +02:00
2019-10-15 11:25:25 +02:00
2019-10-15 11:25:25 +02:00
2020-01-07 16:40:41 +01:00
2019-10-15 11:25:25 +02:00
2019-10-15 11:25:25 +02:00
2019-10-15 11:25:25 +02:00
2019-11-14 19:02:31 +01:00
2019-12-09 14:06:15 +01:00
2019-12-09 14:06:15 +01:00