gtk-ng: properly skip Zig test

pull/8322/head
Jeffrey C. Ollie 2025-08-21 09:14:06 -05:00
parent d2ac29c919
commit 2d0f930e6a
No known key found for this signature in database
GPG Key ID: 6F86035A6D97044E
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ pub fn addAsGroup(comptime T: type, self: *T, comptime name: [:0]const u8, actio
test "adding actions to an object" { test "adding actions to an object" {
// This test requires a connection to an active display environment. // This test requires a connection to an active display environment.
if (gtk.initCheck() == 0) return; if (gtk.initCheck() == 0) return error.SkipZigTest;
const callbacks = struct { const callbacks = struct {
fn callback(_: *gio.SimpleAction, variant_: ?*glib.Variant, self: *gtk.Box) callconv(.c) void { fn callback(_: *gio.SimpleAction, variant_: ?*glib.Variant, self: *gtk.Box) callconv(.c) void {