aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/tests/downloader
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-06-28 15:15:37 +0900
committernsfisis <nsfisis@gmail.com>2026-06-28 15:15:37 +0900
commiteb372d3e0cf2bb874402bc4ddcca2bae79696249 (patch)
tree272c7c79019b1ea100a583cbefd3eea5fd01d10a /crates/shirabe/tests/downloader
parent3badc8a0bb24d5e378941a5b12f674040c3f314f (diff)
downloadphp-shirabe-eb372d3e0cf2bb874402bc4ddcca2bae79696249.tar.gz
php-shirabe-eb372d3e0cf2bb874402bc4ddcca2bae79696249.tar.zst
php-shirabe-eb372d3e0cf2bb874402bc4ddcca2bae79696249.zip
test(downloader): cfg-gate XzDownloaderTest skip on Windows/32bit
Replace the todo!() markTestSkipped placeholders in set_up with a compile-time cfg gate on the test function, mirroring PHP's setUp skips on Windows and 32bit. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/tests/downloader')
-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() {