From 5fb4cebcc6c9b241668d36c8732c93e1978b135e Mon Sep 17 00:00:00 2001 From: Alan Somers Date: Sat, 15 Jul 2017 10:47:58 -0600 Subject: PtyMaster::drop should panic on EBADF Also, document the double-close risk with unistd::close Fixes #659 --- Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index 64a212f6..e768f4a1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -48,3 +48,7 @@ test = true name = "test-mount" path = "test/test_mount.rs" harness = false + +[[test]] +name = "test-ptymaster-drop" +path = "test/test_ptymaster_drop.rs" -- cgit v1.2.3