ported GoogleTests to EPICS Test Harness

This commit is contained in:
Matej Sekoranja
2013-06-11 09:20:21 +02:00
parent 9c23391444
commit d0c5e1f604
9 changed files with 231 additions and 270 deletions

View File

@@ -0,0 +1,26 @@
#include <epicsUnitTest.h>
#include <testMain.h>
#include <pv/remote.h>
using namespace epics::pvAccess;
MAIN(testAtomicBoolean)
{
testPlan(5);
testDiag("Tests for AtomicBoolean");
AtomicBoolean ab;
testOk(ab.get() == false, "Initial state");
ab.set();
testOk(ab.get() == true, "Set to true");
ab.set();
testOk(ab.get() == true, "Set to true (again)");
ab.clear();
testOk(ab.get() == false, "Set to false");
ab.clear();
testOk(ab.get() == false, "Set to again");
return testDone();
}