runTests: handle samefile OSError, bug #454880