Debian Codegraph @

debian/patches/increase-test-timeout.patch

raw
1 --- a/src/tests/pathological.rs
2 +++ b/src/tests/pathological.rs
3 @@ -5,7 +5,7 @@ use ntest::timeout;
4
5 // input: python3 -c 'n = 50000; print("*a_ " * n)'
6 #[test]
7 -#[timeout(4000)]
8 +#[timeout(40000)]
9 fn pathological_emphases() {
10 let n = 50_000;
11 let input = "*a_ ".repeat(n);
12 @@ -19,7 +19,7 @@ fn pathological_emphases() {
13
14 // input: python3 -c 'n = 10000; print("|" + "x|" * n + "\n|" + "-|" * n)'
15 #[test]
16 -#[timeout(4000)]
17 +#[timeout(40000)]
18 fn pathological_table_columns_1() {
19 let n = 100_000;
20 let input = format!("{}{}{}{}", "|", "x|".repeat(n), "\n|", "-|".repeat(n));
21 @@ -30,7 +30,7 @@ fn pathological_table_columns_1() {
22
23 // input: python3 -c 'n = 70000; print("|" + "x|" * n + "\n|" + "-|" * n + "\n" + "a\n" * n)'
24 #[test]
25 -#[timeout(4000)]
26 +#[timeout(40000)]
27 fn pathological_table_columns_2() {
28 let n = 100_000;
29 let input = format!(
30 @@ -60,7 +60,7 @@ fn pathological_table_columns_2() {
31
32 // input: python3 -c 'n = 10000; print("[^1]:" * n + "\n" * n)'
33 #[test]
34 -#[timeout(4000)]
35 +#[timeout(40000)]
36 fn pathological_footnotes() {
37 let n = 10_000;
38 let input = format!("{}{}", "[^1]:".repeat(n), "\n".repeat(n));