Fix building CLI tests when JavaScript provider disabled

This commit is contained in:
Martchus 2019-04-10 20:34:25 +02:00
parent 800bbf9805
commit c34db3eb1c
1 changed files with 1 additions and 1 deletions

View File

@ -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);