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" {
const glfw = @import("main.zig");
try glfw.init(.{});
defer glfw.terminate();
// Causes segfault on wayland
// test "getName" {
// const glfw = @import("main.zig");
// 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" {
const glfw = @import("main.zig");