public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rust-arrayvec] epel9: Skip two tests on 32-bit architectures
@ 2026-06-23 15:42 Fabio Valentini
0 siblings, 0 replies; only message in thread
From: Fabio Valentini @ 2026-06-23 15:42 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/rust-arrayvec
Branch : epel9
Commit : 66b955011214b6d382c78ddf3f0c2b01489c8da0
Author : Fabio Valentini <decathorpe@gmail.com>
Date : 2026-06-23T17:02:13+02:00
Stats : +36/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/rust-arrayvec/c/66b955011214b6d382c78ddf3f0c2b01489c8da0?branch=epel9
Log:
Skip two tests on 32-bit architectures
---
diff --git a/0001-tests-skip-two-tests-on-32-bit-architectures.patch b/0001-tests-skip-two-tests-on-32-bit-architectures.patch
new file mode 100644
index 0000000..f4ee4e9
--- /dev/null
+++ b/0001-tests-skip-two-tests-on-32-bit-architectures.patch
@@ -0,0 +1,35 @@
+From 53c2b36dee21d3fa57e64573ce8580b18ea7aca5 Mon Sep 17 00:00:00 2001
+From: Fabio Valentini <decathorpe@gmail.com>
+Date: Tue, 23 Jun 2026 16:53:17 +0200
+Subject: [PATCH] tests: skip two tests on 32-bit architectures
+
+https://github.com/bluss/arrayvec/issues/311
+---
+ tests/tests.rs | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/tests/tests.rs b/tests/tests.rs
+index 098614b..32bdd23 100644
+--- a/tests/tests.rs
++++ b/tests/tests.rs
+@@ -756,7 +756,7 @@ fn allow_max_capacity_arrayvec_type() {
+ }
+
+ #[should_panic(expected="largest supported capacity")]
+-#[cfg(not(target_pointer_width = "16"))]
++#[cfg(not(any(target_pointer_width = "16", target_pointer_width = "32")))]
+ #[test]
+ fn deny_max_capacity_arrayvec_value() {
+ // this type is allowed to be used (but can't be constructed)
+@@ -764,7 +764,7 @@ fn deny_max_capacity_arrayvec_value() {
+ }
+
+ #[should_panic(expected="index out of bounds")]
+-#[cfg(not(target_pointer_width = "16"))]
++#[cfg(not(any(target_pointer_width = "16", target_pointer_width = "32")))]
+ #[test]
+ fn deny_max_capacity_arrayvec_value_const() {
+ // this type is allowed to be used (but can't be constructed)
+--
+2.54.0
+
diff --git a/rust-arrayvec.spec b/rust-arrayvec.spec
index 39961bb..efbeacd 100644
--- a/rust-arrayvec.spec
+++ b/rust-arrayvec.spec
@@ -16,6 +16,7 @@ Source: %{crates_source}
# * drop unused, benchmark-only bencher dev-dependency
# * drop unused support for borsh
Patch: arrayvec-fix-metadata.diff
+Patch: 0001-tests-skip-two-tests-on-32-bit-architectures.patch
BuildRequires: cargo-rpm-macros >= 24
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-23 15:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-23 15:42 [rpms/rust-arrayvec] epel9: Skip two tests on 32-bit architectures Fabio Valentini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox