blob: 2d521017d11a27bac0d3cb65373e013ad9212398 [file] [log] [blame]
William A. Kennington IIIeac9d472020-08-03 13:57:14 -07001#include <gtest/gtest.h>
2#include <stdplus/fd/ops.hpp>
3
4namespace stdplus
5{
6namespace fd
7{
8
9TEST(Flags, Flags)
10{
11 FdFlags f = FdFlags(0).set(FdFlag::CloseOnExec).unset(FdFlag::CloseOnExec);
12 f.set(FdFlag::CloseOnExec).unset(FdFlag::CloseOnExec);
13 EXPECT_EQ(0, static_cast<int>(f));
14}
15
16} // namespace fd
17} // namespace stdplus