Skip to content

Commit

Permalink
skip test if no symbol found
Browse files Browse the repository at this point in the history
  • Loading branch information
DerryAlex committed Jul 22, 2024
1 parent 05ef31b commit 9cda0d3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gi-ext.zig
Original file line number Diff line number Diff line change
Expand Up @@ -619,6 +619,8 @@ pub const FunctionInfoExt = struct {
\\test "{s}{s}" {{
\\ if (comptime @hasDecl(c, "{s}")) {{
\\ try std.testing.expect(comptime core.isAbiCompatitable(@TypeOf(c.{s}), fn{ocb}));
\\ }} else {{
\\ return error.SkipZigTest;
\\ }}
\\}}
\\
Expand Down

0 comments on commit 9cda0d3

Please sign in to comment.