]> git.donarmstrong.com Git - lilypond.git/blobdiff - flower/test-file-path.cc
Run grand-replace for 2012
[lilypond.git] / flower / test-file-path.cc
index fb2f3f2f65a7a5202432cb5d16e86c7f5bd500e4..99366a1f100d0182bb248ffd1eae22ff595c7303 100644 (file)
@@ -10,7 +10,11 @@ TEST (File_path, Find)
   char const *extensions[] = {"ly", "", 0};
   string file = "init";
   char cwd[PATH_MAX];
-  getcwd (cwd, PATH_MAX);
+  if (!getcwd (cwd, PATH_MAX))
+    {
+      cerr << "Could not get current work directory\n";
+      exit (1);
+    }
   string ly_dir = string (getenv ("top-src-dir")) + "/ly";
   parse_path (string (1, PATHSEP) + ly_dir);
   string file_name = find (file, extensions);