Missing comma in the test assertion.
The assumption that errno would be the same for the duration of the whole call chain is wrong as it's possible that other calls that modify it are made. Using the actual error string itself is much more reliable.
A link with the old directory name is provided.