Files
pvAccess/testApp/utils/atomicBooleanTest.cpp
2011-10-06 20:40:33 +02:00

17 lines
260 B
C++

#include <gtest/gtest.h>
#include <remote.h>
using namespace epics::pvAccess;
TEST(atomicBooleanTest, atomicBoolean)
{
AtomicBoolean ab;
EXPECT_FALSE(ab.get());
ab.set();
EXPECT_TRUE(ab.get());
ab.clear();
EXPECT_FALSE(ab.get());
}