Elliott Hughes | 02fdd05 | 2017-07-06 10:33:15 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2017 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | #include <gtest/gtest.h> |
| 18 | |
| 19 | #include <sys/ttydefaults.h> |
| 20 | #include <termios.h> |
| 21 | |
| 22 | TEST(sys_ttydefaults, flags) { |
Christopher Ferris | 724efbb | 2021-12-14 06:28:40 +0000 | [diff] [blame] | 23 | [[maybe_unused]] int i; |
Elliott Hughes | 02fdd05 | 2017-07-06 10:33:15 -0700 | [diff] [blame] | 24 | i = TTYDEF_IFLAG; |
| 25 | i = TTYDEF_OFLAG; |
| 26 | i = TTYDEF_LFLAG; |
| 27 | i = TTYDEF_CFLAG; |
| 28 | i = TTYDEF_SPEED; |
| 29 | } |
| 30 | |
| 31 | TEST(sys_ttydefaults, correct_CEOL) { |
| 32 | ASSERT_EQ(_POSIX_VDISABLE, CEOL); |
| 33 | } |