Implement getpass()
Also make fields in `termios` public; required for modifying them. There's an new type of test: `EXPECT_INPUT_BINS`. These require a `.exp` file to be present along with the `.c` file. The `.exp` file takes the produced binary as an argument and sends input to the program. This is useful for testing functions like `getpass()`.
Showing
- src/header/limits/mod.rs 1 addition, 0 deletionssrc/header/limits/mod.rs
- src/header/termios/mod.rs 15 additions, 15 deletionssrc/header/termios/mod.rs
- src/header/unistd/mod.rs 48 additions, 4 deletionssrc/header/unistd/mod.rs
- tests/Makefile 17 additions, 1 deletiontests/Makefile
- tests/unistd/getpass.c 39 additions, 0 deletionstests/unistd/getpass.c
- tests/unistd/getpass.exp 18 additions, 0 deletionstests/unistd/getpass.exp
Loading
Please register or sign in to comment