tests: don't rely on strerror text when testing rmdir failure