glfw: disable "getName" test for now because of undefined behaviour in GLFW caught by UBSan
This commit is contained in:
parent
d7c4c730ad
commit
d5b75b9aa7
1 changed files with 7 additions and 6 deletions
13
src/key.zig
13
src/key.zig
|
@ -255,13 +255,14 @@ pub const Key = enum(c_int) {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
test "getName" {
|
// Causes segfault on wayland
|
||||||
const glfw = @import("main.zig");
|
// test "getName" {
|
||||||
try glfw.init(.{});
|
// const glfw = @import("main.zig");
|
||||||
defer glfw.terminate();
|
// try glfw.init(.{});
|
||||||
|
// defer glfw.terminate();
|
||||||
|
|
||||||
_ = glfw.Key.a.getName(0) catch |err| std.debug.print("failed to get key name, not supported? error={}\n", .{err});
|
// _ = glfw.Key.a.getName(0) catch |err| std.debug.print("failed to get key name, not supported? error={}\n", .{err});
|
||||||
}
|
// }
|
||||||
|
|
||||||
test "getScancode" {
|
test "getScancode" {
|
||||||
const glfw = @import("main.zig");
|
const glfw = @import("main.zig");
|
||||||
|
|
Loading…
Add table
Reference in a new issue