Disable tests which broke due to test runner changes in Rust 1.67+

epel9 imports/e9/rust-num_threads-0.1.6-4.el9
Fabio Valentini 2 years ago
parent b5aa560476
commit 9e0fd836e5
No known key found for this signature in database
GPG Key ID: 5AC5F572E5D410AF

@ -1,9 +1,8 @@
--- num_threads-0.1.6/Cargo.toml 1970-01-01T00:00:01+00:00 --- num_threads-0.1.6/Cargo.toml 1970-01-01T00:00:01+00:00
+++ num_threads-0.1.6/Cargo.toml 2022-05-13T19:38:33.207825+00:00 +++ num_threads-0.1.6/Cargo.toml 1970-01-01T00:00:01+00:00
@@ -31,6 +31,3 @@ @@ -32,5 +32,3 @@
targets = ["x86_64-unknown-linux-gnu"]
[dependencies] [dependencies]
-
-[target."cfg(any(target_os = \"macos\", target_os = \"ios\", target_os = \"freebsd\"))".dependencies.libc] -[target."cfg(any(target_os = \"macos\", target_os = \"ios\", target_os = \"freebsd\"))".dependencies.libc]
-version = "0.2.107" -version = "0.2.107"

@ -1,23 +1,21 @@
# Generated by rust2rpm 21 # Generated by rust2rpm 23
%bcond_without check # * tests are broken due to test runner changes in Rust 1.67+:
# https://github.com/jhpratt/num_threads/issues/13
%bcond_with check
%global debug_package %{nil} %global debug_package %{nil}
%global crate num_threads %global crate num_threads
Name: rust-%{crate} Name: rust-num_threads
Version: 0.1.6 Version: 0.1.6
Release: %autorelease Release: %autorelease
Summary: Determine the number of running threads for the current process Summary: Determine the number of running threads for the current process
# Upstream license specification: MIT OR Apache-2.0 License: MIT OR Apache-2.0
License: MIT or ASL 2.0
URL: https://crates.io/crates/num_threads URL: https://crates.io/crates/num_threads
Source: %{crates_source} Source: %{crates_source}
# Initial patched metadata # Automatically generated patch to strip foreign dependencies
# * drop non-linux dependencies Patch: num_threads-fix-metadata-auto.diff
Patch0: num_threads-fix-metadata.diff
ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging >= 21 BuildRequires: rust-packaging >= 21
@ -68,8 +66,7 @@ use the "default" feature of the "%{crate}" crate.
%if %{with check} %if %{with check}
%check %check
# * tests expect to be run from a single thread %cargo_test
%cargo_test -- -- --test-threads 1
%endif %endif
%changelog %changelog

Loading…
Cancel
Save