test: fix x86stdcall test, r=burningtree.
This commit is contained in:
parent
10eb620537
commit
d1f771ca34
1 changed files with 7 additions and 5 deletions
|
@ -20,11 +20,13 @@ extern "stdcall" mod kernel32 {
|
||||||
|
|
||||||
#[cfg(target_os = "win32")]
|
#[cfg(target_os = "win32")]
|
||||||
fn main() {
|
fn main() {
|
||||||
let expected = 1234u;
|
unsafe {
|
||||||
kernel32::SetLastError(expected);
|
let expected = 1234u;
|
||||||
let actual = kernel32::GetLastError();
|
kernel32::SetLastError(expected);
|
||||||
log(error, actual);
|
let actual = kernel32::GetLastError();
|
||||||
assert (expected == actual);
|
log(error, actual);
|
||||||
|
assert (expected == actual);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(target_os = "macos")]
|
#[cfg(target_os = "macos")]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue