blob: 2d521017d11a27bac0d3cb65373e013ad9212398 [file] [log] [blame]
#include <gtest/gtest.h>
#include <stdplus/fd/ops.hpp>
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