winit-sonoma-fix/tests/headless.rs
2014-10-09 15:55:42 +02:00

14 lines
244 B
Rust

#![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() };
}