winit-sonoma-fix/tests/headless.rs

14 lines
244 B
Rust
Raw Normal View History

2014-10-05 04:17:02 +11:00
#![feature(phase)]
#![feature(tuple_indexing)]
extern crate glutin;
#[cfg(feature = "headless")]
#[test]
fn main() {
let window = glutin::HeadlessRendererBuilder::new(1024, 768).build().unwrap();
unsafe { window.make_current() };
}