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.
This commit is contained in:
Martchus 2018-04-17 23:50:45 +02:00
parent c7418431f5
commit 28eacb61a4
1 changed files with 7 additions and 0 deletions

View File

@ -9,6 +9,8 @@
#include <cppunit/TestFixture.h>
#include <cppunit/extensions/HelperMacros.h>
#include <unistd.h>
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);
}
}
/*!