aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFredrik Noren <fredrik.jw.noren@gmail.com>2016-01-08 00:34:10 -0500
committerFredrik Noren <fredrik.jw.noren@gmail.com>2016-01-08 00:34:10 -0500
commit898a411c86b833b7ef72bd584eb922834a8966b4 (patch)
treeccf61f2b31525b91addee4cceb4f20315d1aa8f0
parentc6c4dfdd1e1c28878d5049c825db377dd5c747ee (diff)
downloadglutin-898a411c86b833b7ef72bd584eb922834a8966b4.tar.gz
glutin-898a411c86b833b7ef72bd584eb922834a8966b4.zip
Don't run headless test on linux
-rw-r--r--tests/headless.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/headless.rs b/tests/headless.rs
index 69d06b8..f175477 100644
--- a/tests/headless.rs
+++ b/tests/headless.rs
@@ -8,8 +8,9 @@ mod gl {
}
use gl::types::*;
+#[cfg(not(target_os = "linux"))]
#[test]
-fn main() {
+fn test_headless() {
let width: i32 = 2;
let height: i32 = 1;
let window = glutin::HeadlessRendererBuilder::new(width as u32, height as u32).build().unwrap();