Fix the test and remove trailing dots on Windows for issue #6972.
2 files changed