| ... | @@ -1,4 +1,5 @@ | ... | @@ -1,4 +1,5 @@ |
| 1 | const std = @import("../../index.zig"); | 1 | const std = @import("../../index.zig"); |
| | 2 | const builtin = @import("builtin"); |
| 2 | const os = std.os; | 3 | const os = std.os; |
| 3 | const windows = std.os.windows; | 4 | const windows = std.os.windows; |
| 4 | const assert = std.debug.assert; | 5 | const assert = std.debug.assert; |
| ... | @@ -170,6 +171,8 @@ pub fn windowsUnloadDll(hModule: windows.HMODULE) void { | ... | @@ -170,6 +171,8 @@ pub fn windowsUnloadDll(hModule: windows.HMODULE) void { |
| 170 | | 171 | |
| 171 | | 172 | |
| 172 | test "InvalidDll" { | 173 | test "InvalidDll" { |
| | 174 | if (builtin.os != builtin.Os.windows) return; |
| | 175 | |
| 173 | const DllName = "asdf.dll"; | 176 | const DllName = "asdf.dll"; |
| 174 | const allocator = std.debug.global_allocator; | 177 | const allocator = std.debug.global_allocator; |
| 175 | const handle = os.windowsLoadDll(allocator, DllName) catch |err| { | 178 | const handle = os.windowsLoadDll(allocator, DllName) catch |err| { |