Skip to content

Commit

Permalink
fix linux test
Browse files Browse the repository at this point in the history
  • Loading branch information
kennykerr committed Jun 25, 2024
1 parent cf9b35b commit 25ff9a8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
8 changes: 2 additions & 6 deletions crates/tests/linux/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
5 changes: 3 additions & 2 deletions crates/tests/linux/tests/hresult.rs
Original file line number Diff line number Diff line change
@@ -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() {
Expand Down

0 comments on commit 25ff9a8

Please sign in to comment.