William A. Kennington III | eac9d47 | 2020-08-03 13:57:14 -0700 | [diff] [blame] | 1 | #include <stdplus/fd/ops.hpp> |
| 2 | |
Patrick Williams | d1984dd | 2023-05-10 16:12:44 -0500 | [diff] [blame^] | 3 | #include <gtest/gtest.h> |
| 4 | |
William A. Kennington III | eac9d47 | 2020-08-03 13:57:14 -0700 | [diff] [blame] | 5 | namespace stdplus |
| 6 | { |
| 7 | namespace fd |
| 8 | { |
| 9 | |
| 10 | TEST(Flags, Flags) |
| 11 | { |
| 12 | FdFlags f = FdFlags(0).set(FdFlag::CloseOnExec).unset(FdFlag::CloseOnExec); |
| 13 | f.set(FdFlag::CloseOnExec).unset(FdFlag::CloseOnExec); |
| 14 | EXPECT_EQ(0, static_cast<int>(f)); |
| 15 | } |
| 16 | |
| 17 | } // namespace fd |
| 18 | } // namespace stdplus |