]> git.donarmstrong.com Git - lilypond.git/commitdiff
fix flower test to actually work.
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Thu, 28 Dec 2006 15:32:29 +0000 (16:32 +0100)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Thu, 28 Dec 2006 15:32:29 +0000 (16:32 +0100)
flower/GNUmakefile
flower/test-file.cc

index 5fe94f1f08c8bbf17368392ce9e91c2e49709d85..670aece45c790970d06f82ce48953360b542e96e 100644 (file)
@@ -12,5 +12,5 @@ STEPMAKE_TEMPLATES=library c++ po test
 # test uses LILYPONDPREFIX
 LOCALSTEPMAKE_TEMPLATES=lilypond
 TEST_MODULE_LIBS = ../flower
-
+export top-src-dir
 include $(depth)/make/stepmake.make
index 9057b3a9e2e91217f0233b1df79fbf5b8a697718..177676f791577b5ca0c30234d712ef9f9f083060 100644 (file)
@@ -47,7 +47,7 @@ void file_find ()
   File_path path;
   char cwd[PATH_MAX];
   getcwd (cwd, PATH_MAX);
-  string ly_dir = string (getenv ("LILYPONDPREFIX")) + "/ly";
+  string ly_dir = string (getenv ("top-src-dir")) + "/ly";
   cout << ly_dir << endl;
   path.parse_path (string (1, PATHSEP) + ly_dir);
   string file_name = path.find (file, extensions);
@@ -57,4 +57,5 @@ void file_find ()
   file_name = path.find (file, extensions);
   cout << file_name << endl;
   BOOST_CHECK_EQUAL (file_name, ly_dir + "/init.ly");
+  
 }