fish-shell/tests/realpath.err
Aaron Gyes b00b1af152 Improve realpath error reporting, fix a crasher
realpath() will return NULL and sets errno if it fails.
We asserted that realpath(".") does not fail. We also didn't really
check that it was successful. Made sure we'll get a perror telling
us about what went wrong if something like this happens again.

Updated tests and added test case

Fixes #5351
2018-11-18 09:35:58 -08:00

3 lines
124 B
Plaintext

builtin realpath: /this/better/be/an/invalid/path: No such file or directory
builtin realpath: .: No such file or directory