From 9c20800abe148e0de41ec599fe9b6592e9156b82 Mon Sep 17 00:00:00 2001 From: Alex Lyon <arcterus@mail.com> Date: Sun, 11 Mar 2018 13:37:47 -0700 Subject: [PATCH] Print out machine name in test_machine() on Windows --- .gitattributes | 1 + src/windows.rs | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..176a458 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* text=auto diff --git a/src/windows.rs b/src/windows.rs index 90e01fc..2066002 100644 --- a/src/windows.rs +++ b/src/windows.rs @@ -373,7 +373,10 @@ fn test_machine() { vec!["unknown"] }; - assert!(target.contains(&&*PlatformInfo::new().unwrap().machine())); + let info = PlatformInfo::new().unwrap(); + + println!("{}", info.machine()); + assert!(target.contains(&&*info.machine())); } // TODO: figure out a way to test these -- GitLab