summaryrefslogtreecommitdiff
path: root/user/rust/0007-test-failed-doctest-output-Fix-normalization.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2024-08-04 01:47:47 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2024-10-17 00:58:45 -0500
commitfbfbce19585d9d0b725fbb42c4288db8d9fc8553 (patch)
treeaad1fdd37d932ad1354bc7584a0b0e686dd3f511 /user/rust/0007-test-failed-doctest-output-Fix-normalization.patch
parent3b9833ebc81444bcb1e6817d47fc14b3e49a12e1 (diff)
downloadpackages-fbfbce19585d9d0b725fbb42c4288db8d9fc8553.tar.gz
packages-fbfbce19585d9d0b725fbb42c4288db8d9fc8553.tar.bz2
packages-fbfbce19585d9d0b725fbb42c4288db8d9fc8553.tar.xz
packages-fbfbce19585d9d0b725fbb42c4288db8d9fc8553.zip
user/rust: Add version 1.80.0
Diffstat (limited to 'user/rust/0007-test-failed-doctest-output-Fix-normalization.patch')
-rw-r--r--user/rust/0007-test-failed-doctest-output-Fix-normalization.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/user/rust/0007-test-failed-doctest-output-Fix-normalization.patch b/user/rust/0007-test-failed-doctest-output-Fix-normalization.patch
new file mode 100644
index 000000000..373e1751a
--- /dev/null
+++ b/user/rust/0007-test-failed-doctest-output-Fix-normalization.patch
@@ -0,0 +1,33 @@
+From 5ecc3bac493f2df5b76f42cff6ea602d1624d323 Mon Sep 17 00:00:00 2001
+From: Samuel Holland <samuel@sholland.org>
+Date: Mon, 7 Oct 2019 18:36:28 -0500
+Subject: [PATCH 07/12] test/failed-doctest-output: Fix normalization
+
+Otherwise we get:
+
+1
+2 running 2 tests
+- test $DIR/failed-doctest-output.rs - OtherStruct (line 20) ... FAILED
+- test $DIR/failed-doctest-output.rs - SomeStruct (line 10) ... FAILED
++ test src/rustc-1.38.0-src/$DIR/failed-doctest-output.rs - OtherStruct (line 20) ... FAILED
++ test src/rustc-1.38.0-src/$DIR/failed-doctest-output.rs - SomeStruct (line 10) ... FAILED
+5
+6 failures:
+7
+---
+ tests/rustdoc-ui/doctest/failed-doctest-output.rs | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/tests/rustdoc-ui/doctest/failed-doctest-output.rs b/tests/rustdoc-ui/doctest/failed-doctest-output.rs
+index d4d49b73793e6..9c44f7ce23281 100644
+--- a/tests/rustdoc-ui/doctest/failed-doctest-output.rs
++++ b/tests/rustdoc-ui/doctest/failed-doctest-output.rs
+@@ -7,7 +7,7 @@
+
+ //@ compile-flags:--test --test-args --test-threads=1
+ //@ rustc-env:RUST_BACKTRACE=0
+-//@ normalize-stdout-test: "tests/rustdoc-ui/doctest" -> "$$DIR"
++//@ normalize-stdout-test: "[[:graph:]]*tests/rustdoc-ui/doctest" -> "$$DIR"
+ //@ normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"
+ //@ failure-status: 101
+