diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-06-28 15:15:37 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-06-28 15:15:37 +0900 |
| commit | eb372d3e0cf2bb874402bc4ddcca2bae79696249 (patch) | |
| tree | 272c7c79019b1ea100a583cbefd3eea5fd01d10a /crates | |
| parent | 3badc8a0bb24d5e378941a5b12f674040c3f314f (diff) | |
| download | php-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')
| -rw-r--r-- | crates/shirabe/tests/downloader/xz_downloader_test.rs | 11 |
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() { |
