diff --git a/src/tests/check_layout.cpp b/src/tests/check_layout.cpp index b4ecad9a0c..d4180d57b0 100644 --- a/src/tests/check_layout.cpp +++ b/src/tests/check_layout.cpp @@ -47,7 +47,7 @@ using namespace std; bool test_Layout(string const & input, string const & output) { FileName const ifn(makeAbsPath(input)); - LayoutFileList l; + LayoutFileList& l = LayoutFileList::get(); LayoutFileIndex i = l.addLocalLayout(ifn.onlyFileName(), ifn.onlyPath().absFileName()); if (i.empty()) { cerr << "Could not read layout file " << input << ".layout.\n";