AtomicBoolean for _closed flag
This commit is contained in:
16
testApp/utils/atomicBooleanTest.cpp
Normal file
16
testApp/utils/atomicBooleanTest.cpp
Normal file
@@ -0,0 +1,16 @@
|
||||
#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());
|
||||
}
|
||||
Reference in New Issue
Block a user