X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=flower%2Ftest-file-path.cc;h=8a891afeea8c79d1d6da211fccc148803fcf8424;hb=8659a99f233f5c4684292728e7ad4206669b35b0;hp=e55309a3f775dd428f339a4d8960feb26ac19f01;hpb=f127e14af04f474d20406ca0e0f76f05061ee103;p=lilypond.git diff --git a/flower/test-file-path.cc b/flower/test-file-path.cc index e55309a3f7..8a891afeea 100644 --- a/flower/test-file-path.cc +++ b/flower/test-file-path.cc @@ -1,4 +1,5 @@ #include "file-path.hh" +#include "file-name.hh" #include #include @@ -6,14 +7,11 @@ #include "yaffut.hh" #include "config.hh" -using std::string; - TEST (File_path, Find) { char const *extensions[] = {"ly", "", 0}; string file = "init"; - char cwd[PATH_MAX]; - if (!getcwd (cwd, PATH_MAX)) + if (get_working_directory().empty()) { cerr << "Could not get current work directory\n"; exit (1);