#include <stdplus/fd/ops.hpp> | |
#include <gtest/gtest.h> | |
namespace stdplus | |
{ | |
namespace fd | |
{ | |
TEST(Flags, Flags) | |
{ | |
FdFlags f = FdFlags(0).set(FdFlag::CloseOnExec).unset(FdFlag::CloseOnExec); | |
f.set(FdFlag::CloseOnExec).unset(FdFlag::CloseOnExec); | |
EXPECT_EQ(0, static_cast<int>(f)); | |
} | |
} // namespace fd | |
} // namespace stdplus |