From 25ff9a86e110737e310c6ba2bf30e26b3612d83b Mon Sep 17 00:00:00 2001 From: Kenny Kerr Date: Tue, 25 Jun 2024 11:45:02 -0500 Subject: [PATCH] fix linux test --- crates/tests/linux/Cargo.toml | 8 ++------ crates/tests/linux/tests/hresult.rs | 5 +++-- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/crates/tests/linux/Cargo.toml b/crates/tests/linux/Cargo.toml index 6bc89e611f..f0a97abf69 100644 --- a/crates/tests/linux/Cargo.toml +++ b/crates/tests/linux/Cargo.toml @@ -8,9 +8,5 @@ publish = false doc = false doctest = false -[dependencies.windows] -path = "../../libs/windows" -features = [ - "Foundation", - "Win32_Foundation", -] +[dependencies.windows-result] +path = "../../libs/result" diff --git a/crates/tests/linux/tests/hresult.rs b/crates/tests/linux/tests/hresult.rs index 9eef4b7f32..3414132583 100644 --- a/crates/tests/linux/tests/hresult.rs +++ b/crates/tests/linux/tests/hresult.rs @@ -1,8 +1,9 @@ // This tests code paths in `windows-result` that are different on non-Windows platforms. #![cfg(not(windows))] -use windows::core::Error; -use windows::Win32::Foundation::{E_FAIL, S_OK}; +use windows_result::*; +pub const E_FAIL: HRESULT = HRESULT(0x80004005_u32 as _); +pub const S_OK: HRESULT = HRESULT(0x0_u32 as _); #[test] fn basic_hresult() {