aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/tests
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/tests')
-rw-r--r--crates/shirabe/tests/downloader/xz_downloader_test.rs11
1 files changed, 3 insertions, 8 deletions
diff --git a/crates/shirabe/tests/downloader/xz_downloader_test.rs b/crates/shirabe/tests/downloader/xz_downloader_test.rs
index 71f3960..d69e7cc 100644
--- a/crates/shirabe/tests/downloader/xz_downloader_test.rs
+++ b/crates/shirabe/tests/downloader/xz_downloader_test.rs
@@ -32,15 +32,9 @@ fn run<F: std::future::Future>(future: F) -> F::Output {
.block_on(future)
}
+/// ref: setUp markTestSkipped on Windows / 32bit, expressed as a compile-time
+/// cfg gate on the test function below.
fn set_up() -> TempDir {
- if Platform::is_windows() {
- // markTestSkipped('Skip test on Windows')
- todo!()
- }
- if std::mem::size_of::<usize>() == 4 {
- // markTestSkipped('Skip test on 32bit')
- todo!()
- }
TempDir::new().unwrap()
}
@@ -77,6 +71,7 @@ fn get_config(config_options: IndexMap<String, PhpMixed>, use_environment: bool)
config
}
+#[cfg(all(not(windows), target_pointer_width = "64"))]
#[ignore]
#[test]
fn test_error_messages() {