From c34db3eb1c4414b3f43d132afe4f4b303a92efb5 Mon Sep 17 00:00:00 2001 From: Martchus Date: Wed, 10 Apr 2019 20:34:25 +0200 Subject: [PATCH] Fix building CLI tests when JavaScript provider disabled --- cli/tests/application.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/tests/application.cpp b/cli/tests/application.cpp index ff3ba8a..e073980 100644 --- a/cli/tests/application.cpp +++ b/cli/tests/application.cpp @@ -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);