aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authortomaka <pierre.krieger1708@gmail.com>2014-10-26 16:24:40 +0100
committertomaka <pierre.krieger1708@gmail.com>2014-10-26 16:24:40 +0100
commite887cf57b8177f28d4307f7d092f158fac09ef15 (patch)
tree945e79a747c6fd5f593c64e141781f3931c5d050 /tests
parent0d37f01b5adc274b9d7f72f2ad3c942d640438ab (diff)
parentc61b4ccf99b7755d3d6bcfd996157ad813d8577d (diff)
downloadglutin-e887cf57b8177f28d4307f7d092f158fac09ef15.tar.gz
glutin-e887cf57b8177f28d4307f7d092f158fac09ef15.zip
Merge pull request #73 from tomaka/app-appveyor-cfg
Add appveyor configuration file
Diffstat (limited to 'tests')
-rw-r--r--tests/headless.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/headless.rs b/tests/headless.rs
index 745cae8..3c587ea 100644
--- a/tests/headless.rs
+++ b/tests/headless.rs
@@ -30,5 +30,6 @@ fn main() {
let mut value: (u8, u8, u8, u8) = unsafe { std::mem::uninitialized() };
unsafe { gl.ReadPixels(0, 0, 1, 1, gl::RGBA, gl::UNSIGNED_BYTE, std::mem::transmute(&mut value)) };
- assert_eq!(value, (0, 255, 0, 255));
+ assert!(value == (0, 255, 0, 255) || value == (0, 64, 0, 255) ||
+ value == (0, 64, 0, 255) || value == (0, 64, 0, 0));
}