]> git.donarmstrong.com Git - lilypond.git/blobdiff - flower/test-file-path.cc
Web-ja: update introduction
[lilypond.git] / flower / test-file-path.cc
index a20364b98cf6214e0f727ec9a9672fef85f217d0..8a891afeea8c79d1d6da211fccc148803fcf8424 100644 (file)
@@ -1,4 +1,5 @@
 #include "file-path.hh"
+#include "file-name.hh"
 
 #include <limits.h>
 #include <unistd.h>
@@ -10,8 +11,7 @@ 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);