select tests: Avoid test failures on OSF/1 5.1 and mingw.