Skip to content

Commit

Permalink
Fix building CLI tests when JavaScript provider disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Martchus committed Apr 10, 2019
1 parent 800bbf9 commit c34db3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/tests/application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,9 @@ void ApplicationTests::test()
CPPUNIT_ASSERT(object.value(QLatin1String("folders")).isArray());

// test edit
const char *const statusTest1Args[] = { "syncthingctl", "status", "--dir", "test1", nullptr };
#if defined(SYNCTHINGCTL_USE_JSENGINE) || defined(SYNCTHINGCTL_USE_SCRIPT)
const char *const editArgs[] = { "syncthingctl", "edit", "--js-lines", "assignIfPresent(findFolder('test1'), 'rescanIntervalS', 0);", nullptr };
const char *const statusTest1Args[] = { "syncthingctl", "status", "--dir", "test1", nullptr };
TESTUTILS_ASSERT_EXEC(editArgs);
cout << stdout;
TESTUTILS_ASSERT_EXEC(statusTest1Args);
Expand Down

0 comments on commit c34db3e

Please sign in to comment.