From 28eacb61a4ff0085967d98633d590bcbc8650d19 Mon Sep 17 00:00:00 2001 From: Martchus Date: Tue, 17 Apr 2018 23:50:45 +0200 Subject: [PATCH] Verify whether Syncthing started via libsyncthing is stopped correctly This is currently not the case so the tests fail now. Need to investigate how to stop Syncthing correctly. --- libsyncthing/tests/interfacetests.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libsyncthing/tests/interfacetests.cpp b/libsyncthing/tests/interfacetests.cpp index 6231922..5946865 100644 --- a/libsyncthing/tests/interfacetests.cpp +++ b/libsyncthing/tests/interfacetests.cpp @@ -9,6 +9,8 @@ #include #include +#include + using namespace std; using namespace ChronoUtilities; using namespace ConversionUtilities; @@ -134,6 +136,11 @@ void InterfaceTests::testRun() CPPUNIT_ASSERT(testDev1Ready); CPPUNIT_ASSERT(testDev2Ready); CPPUNIT_ASSERT(shutDownLogged); + + // keep running to check whether we don't crash in the next few seconds + // FIXME: make this test pass, stop Syncthing correctly + sleep(5); +} } /*!