From 0ee1f9c1c6a705978b006130d6395d6007c4200c Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Tue, 26 Jul 2011 21:26:21 -0400 Subject: [PATCH] Bug #807 - Fixed bug #807, which caused a lack of Lua to prevent tests from building (thanks to Owen Clarke). --- ChangeLog | 2 ++ test/dom.t.cpp | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 1564858bb..cbe89e4eb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -156,6 +156,8 @@ (thanks to Bryce Harrington). + Applied patch for #803, allowing rc.confirmation to bypass confirmation of the deletion of a recurring task (thanks to Matt Kraai). + + Fixed bug #807, which caused a lack of Lua to prevent tests from building + (thanks to Owen Clarke). # Untracked Bugs, biggest first. + Fixed bug that required the '%YAML' prologue in a YAML import. diff --git a/test/dom.t.cpp b/test/dom.t.cpp index f0a2a7862..183d43556 100644 --- a/test/dom.t.cpp +++ b/test/dom.t.cpp @@ -42,7 +42,11 @@ Context context; //////////////////////////////////////////////////////////////////////////////// int main (int argc, char** argv) { +#if defined(HAVE_LIBLUA) UnitTest t (7); +#else + UnitTest t (6); +#endif try { @@ -52,7 +56,9 @@ int main (int argc, char** argv) // TODO dom.get rc.name DOM dom; t.is (dom.get ("system.version"), VERSION, "DOM system.version -> VERSION"); +#ifdef HAVE_LIBLUA t.is (dom.get ("system.lua.version"), LUA_RELEASE, "DOM system.lua.version -> LUA_RELEASE"); +#endif t.ok (dom.get ("system.os") != "", "DOM system.os -> != Unknown"); t.is (dom.get ("context.program"), "task", "DOM context.program -> 'task'"); t.is (dom.get ("context.args"), "task", "DOM context.args -> 'task'");