Skip to content
Snippets Groups Projects
Commit 2c32a4b5 authored by Jens Georg's avatar Jens Georg
Browse files

testErrorCodes: Add missing stepApplication()

Otherwise the error code reset would not be triggered
parent 406a52b1
No related branches found
No related tags found
No related merge requests found
......@@ -82,6 +82,7 @@ BOOST_FIXTURE_TEST_CASE(testOutOfRangeWrite, Fixture_t) {
BOOST_CHECK(!errorMessage.readNonBlocking());
BOOST_CHECK(!errorStatus.readNonBlocking());
errorReset.write();
testFacility.stepApplication();
BOOST_CHECK(errorMessage.readNonBlocking());
BOOST_CHECK(errorStatus.readNonBlocking());
BOOST_CHECK(std::string(errorMessage) == "");
......@@ -139,6 +140,7 @@ BOOST_FIXTURE_TEST_CASE(testOutOfRangeWrite, Fixture_t) {
BOOST_CHECK(!errorMessage.readNonBlocking());
BOOST_CHECK(!errorStatus.readNonBlocking());
errorReset.write();
testFacility.stepApplication();
BOOST_CHECK(errorMessage.readNonBlocking());
BOOST_CHECK(errorStatus.readNonBlocking());
BOOST_CHECK(std::string(errorMessage) == "");
......@@ -180,6 +182,7 @@ BOOST_FIXTURE_TEST_CASE(testReadOnDemandError, Fixture_t) {
BOOST_CHECK(!errorMessage.readNonBlocking());
BOOST_CHECK(!errorStatus.readNonBlocking());
errorReset.write();
testFacility.stepApplication();
BOOST_CHECK(errorMessage.readNonBlocking());
BOOST_CHECK(errorStatus.readNonBlocking());
BOOST_CHECK(std::string(errorMessage) == "");
......@@ -250,6 +253,7 @@ BOOST_FIXTURE_TEST_CASE(testReadOnDemandError, Fixture_t) {
// error needs to be reset manually
errorReset.write();
testFacility.stepApplication();
BOOST_CHECK(errorMessage.readNonBlocking());
BOOST_CHECK(errorStatus.readNonBlocking());
BOOST_CHECK(std::string(errorMessage) == "");
......@@ -297,6 +301,7 @@ BOOST_FIXTURE_TEST_CASE(testReadPeriodicError, Fixture_t) {
BOOST_CHECK(!errorMessage.readNonBlocking());
BOOST_CHECK(!errorStatus.readNonBlocking());
errorReset.write();
testFacility.stepApplication();
BOOST_CHECK(errorMessage.readNonBlocking());
BOOST_CHECK(errorStatus.readNonBlocking());
BOOST_CHECK(std::string(errorMessage) == "");
......@@ -324,6 +329,7 @@ BOOST_FIXTURE_TEST_CASE(testReadPeriodicError, Fixture_t) {
BOOST_CHECK(!errorMessage.readNonBlocking());
BOOST_CHECK(!errorStatus.readNonBlocking());
errorReset.write();
testFacility.stepApplication();
BOOST_CHECK(errorMessage.readNonBlocking());
BOOST_CHECK(errorStatus.readNonBlocking());
BOOST_CHECK(std::string(errorMessage) == "");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment