Skip to content

Commit

Permalink
Fix test fallout
Browse files Browse the repository at this point in the history
  • Loading branch information
emberian committed Nov 5, 2014
1 parent 3b9357f commit 483284d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
20 changes: 10 additions & 10 deletions tests/generators_symbols.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ mod egl {

#[test]
#[ignore]
fn test_gl() {
fn test_gl() { unsafe {
gl::Clear(gl::COLOR_BUFFER_BIT);
let _: libc::c_uint = gl::CreateProgram();
gl::CompileShader(5);
Expand All @@ -76,32 +76,32 @@ fn test_gl() {
gl::GetActiveUniformBlockiv(0, 0, gl::UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER,
std::ptr::null_mut());
}
}
}}

#[test]
#[ignore]
fn test_gles() {
fn test_gles() { unsafe {
gles::Clear(gles::COLOR_BUFFER_BIT);
let _: libc::c_uint = gles::CreateProgram();
gles::CompileShader(5);
}
}}

#[test]
#[ignore]
fn test_glx() {
fn test_glx() { unsafe {
let _ = unsafe { glx::GetProcAddress(std::mem::uninitialized()) };
unsafe { glx::SwapBuffers(std::mem::uninitialized(), std::mem::uninitialized()) };
}
}}

#[test]
#[ignore]
fn test_wgl() {
fn test_wgl() { unsafe {
let _: wgl::types::HGLRC = unsafe { wgl::CreateContext(std::mem::uninitialized()) };
}
}}

#[test]
#[ignore]
fn test_egl() {
fn test_egl() { unsafe {
let _ = [
egl::SURFACE_TYPE, egl::WINDOW_BIT,
egl::BLUE_SIZE, 8,
Expand All @@ -112,4 +112,4 @@ fn test_egl() {

let _ = egl::GetDisplay(egl::DEFAULT_DISPLAY);
egl::Terminate(unsafe { std::mem::uninitialized() });
}
}}
4 changes: 2 additions & 2 deletions tests/gl_symbols.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ extern crate libc;

#[test]
#[ignore]
fn symbols_exist() {
fn symbols_exist() { unsafe {
gl::Clear(gl::COLOR_BUFFER_BIT);
let _: libc::c_uint = gl::CreateProgram();
gl::CompileShader(5);
Expand All @@ -14,7 +14,7 @@ fn symbols_exist() {
gl::GetActiveUniformBlockiv(0, 0, gl::UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER,
std::ptr::null_mut());
}
}
} }

#[test]
fn fallback_works() {
Expand Down

0 comments on commit 483284d

Please sign in to comment.