File: disable-cargo-run-tests.patch

package info (click to toggle)
rust-doxx 0.1.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,408 kB
  • sloc: sh: 78; ruby: 15; makefile: 9
file content (32 lines) | stat: -rw-r--r-- 1,069 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Description: Disable tests that require cargo run
 The following tests use `cargo run` which tries to create Cargo.lock
 in the read-only source directory during autopkgtest, causing
 permission denied errors.
Author: Nadzeya Hutsko <nadzya.info@gmail.com>
Forwarded: not-needed
Last-Update: 2025-12-04
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -70,9 +70,9 @@
 name = "integration_test"
 path = "tests/integration_test.rs"
 
-[[test]]
-name = "mixed_formatting_test"
-path = "tests/mixed_formatting_test.rs"
+# [[test]]
+# name = "mixed_formatting_test"
+# path = "tests/mixed_formatting_test.rs"
 
 [[test]]
 name = "search_functionality_test"
--- a/tests/strikethrough_test.rs
+++ b/tests/strikethrough_test.rs
@@ -172,6 +172,7 @@
     use std::process::Command;
 
     #[test]
+    #[ignore = "Ignore tests that try to create Cargo.lock in the read-only directory"]
     fn test_strikethrough_help_available() {
         // This test ensures the application can start and shows help without panicking
         // when strikethrough formatting is included in the codebase