From d22346dab761407e7a49af6e57dc8e676abc8915 Mon Sep 17 00:00:00 2001 From: Han-Wen Nienhuys Date: Thu, 28 Dec 2006 16:32:29 +0100 Subject: [PATCH] fix flower test to actually work. --- flower/GNUmakefile | 2 +- flower/test-file.cc | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/flower/GNUmakefile b/flower/GNUmakefile index 5fe94f1f08..670aece45c 100644 --- a/flower/GNUmakefile +++ b/flower/GNUmakefile @@ -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 diff --git a/flower/test-file.cc b/flower/test-file.cc index 9057b3a9e2..177676f791 100644 --- a/flower/test-file.cc +++ b/flower/test-file.cc @@ -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"); + } -- 2.39.5