mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Bug #807
- Fixed bug #807, which caused a lack of Lua to prevent tests from building (thanks to Owen Clarke).
This commit is contained in:
parent
fde7ec107a
commit
0ee1f9c1c6
2 changed files with 8 additions and 0 deletions
|
@ -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") != "<unknown>", "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'");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue