blob: c0328fe1ab44981cde494a69503d284d3c4abfe0 [file] [log] [blame]
#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