glfw: disable "getName" test for now because of undefined behaviour in GLFW caught by UBSan

This commit is contained in:
PiergiorgioZagaria 2022-06-28 20:22:53 +02:00 committed by Stephen Gutekanst
parent d7c4c730ad
commit d5b75b9aa7

View file

@ -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");