tests: append glob to filename output when required (windows)

This lines were introduced in cd403d6d96ef and made the test fail on
windows.

--HG--
branch : stable