Fixed #21929 - Fixed test regression on Windows.

Thanks Michael Manfre for the report.