William A. Kennington III | eac9d47 | 2020-08-03 13:57:14 -0700 | [diff] [blame] | 1 | #include <gtest/gtest.h> |
2 | #include <stdplus/fd/ops.hpp> | ||||
3 | |||||
4 | namespace stdplus | ||||
5 | { | ||||
6 | namespace fd | ||||
7 | { | ||||
8 | |||||
9 | TEST(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 |