Fix the test for issue #6972.
Remove trailing dots on Windows.