glfw: window open test is optional (cannot open windows on CI)
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
3627edfbba
commit
b5d1ebd1cd
2 changed files with 5 additions and 2 deletions
|
|
@ -538,4 +538,4 @@ test "set_getGammaRamp" {
|
||||||
// technically not needed here / noop because GLFW owns this gamma ramp.
|
// technically not needed here / noop because GLFW owns this gamma ramp.
|
||||||
defer ramp.deinit(allocator);
|
defer ramp.deinit(allocator);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -126,7 +126,10 @@ pub fn basicTest() !void {
|
||||||
c.glfwWindowHint(c.GLFW_VISIBLE, c.GLFW_FALSE);
|
c.glfwWindowHint(c.GLFW_VISIBLE, c.GLFW_FALSE);
|
||||||
const window = c.glfwCreateWindow(640, 480, "GLFW example", null, null);
|
const window = c.glfwCreateWindow(640, 480, "GLFW example", null, null);
|
||||||
if (window == null) {
|
if (window == null) {
|
||||||
@panic("failed to create window");
|
// return without fail, because most of our CI environments are headless / we cannot open
|
||||||
|
// windows on them.
|
||||||
|
std.debug.print("note: failed to create window", .{});
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var start = std.time.milliTimestamp();
|
var start = std.time.milliTimestamp();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue