From 58127f468787bec9ae5d463575a8db83ae3652a7 Mon Sep 17 00:00:00 2001 From: Zac Pullar-Strecker Date: Fri, 19 Oct 2018 18:08:45 +1300 Subject: Add cargo workspace, add winpty tests to CI --- winpty/src/lib.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'winpty') diff --git a/winpty/src/lib.rs b/winpty/src/lib.rs index 3effb939..42a83569 100644 --- a/winpty/src/lib.rs +++ b/winpty/src/lib.rs @@ -356,8 +356,6 @@ mod tests { use self::named_pipe::PipeClient; use self::winapi::um::processthreadsapi::OpenProcess; use self::winapi::um::winnt::READ_CONTROL; - - use std::ptr::null_mut; use {Config, ConfigFlags, SpawnConfig, SpawnFlags, Winpty}; @@ -443,6 +441,7 @@ mod tests { } #[test] + #[ignore] // Test that each id returned by cosole_process_list points to an actual process fn console_process_list_valid() { let mut winpty = Winpty::open( @@ -470,7 +469,7 @@ mod tests { *id as u32 ) }; - assert!(handle != null_mut()); + assert!(!handle.is_null()); }); } } -- cgit