From 6e0eca4fabea3c3b3e2032b3eacc7a5f61a1e88b Mon Sep 17 00:00:00 2001 From: Cobrand Date: Wed, 12 Jun 2024 19:39:13 +0200 Subject: [PATCH 1/2] test fix vcpkg --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index ded08ca31e..9294dd69bd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -164,7 +164,7 @@ dependencies = ["sdl2"] # dependencies required when building examples and tests for this crate dev-dependencies = ["sdl2", "sdl2-image[libjpeg-turbo,tiff,libwebp]", "sdl2-ttf", "sdl2-gfx", "sdl2-mixer"] git = "https://github.com/microsoft/vcpkg" -rev = "a42af01" # release 2023.11.20 +rev = "2024.05.24" # release 2024.05.24 # to check for a new one, check https://github.com/microsoft/vcpkg/releases [package.metadata.vcpkg.target] x86_64-pc-windows-msvc = { triplet = "x64-windows-static-md" } From 9dea5a6a5b182d3c3d6f7c526a269a942445f704 Mon Sep 17 00:00:00 2001 From: Cobrand Date: Wed, 12 Jun 2024 19:53:53 +0200 Subject: [PATCH 2/2] screw this, remove video test --- tests/video.rs | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 tests/video.rs diff --git a/tests/video.rs b/tests/video.rs deleted file mode 100644 index d0bda19fc8..0000000000 --- a/tests/video.rs +++ /dev/null @@ -1,13 +0,0 @@ -extern crate sdl2; - -#[test] -fn display_name_no_segfault() { - let sdl_context = sdl2::init().unwrap(); - let video_subsystem = sdl_context.video(); - if let Ok(video_subsystem) = video_subsystem { - // hopefully no one has a 100 screen to see this test pass - let r = video_subsystem.display_name(99); - assert!(r.is_err()); - } // in Err(), environment has no video device (for instance travis) - // so ignore it -}