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