File: disable-tests-compiler-version-sensitive.patch

package info (click to toggle)
rust-async-stream 0.3.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 236 kB
  • sloc: makefile: 2
file content (22 lines) | stat: -rw-r--r-- 1,082 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
--- a/tests/stream.rs
+++ b/tests/stream.rs
@@ -233,5 +233,18 @@
 #[test]
 fn test() {
     let t = trybuild::TestCases::new();
-    t.compile_fail("tests/ui/*.rs");
+    use std::fs::{self, DirEntry};
+    for entry in fs::read_dir("tests/ui").unwrap() {
+        let entry = entry.unwrap();
+        let path = entry.path();
+        let path = path.to_str().unwrap();
+        println!("{}",path);
+        if !path.ends_with(".rs") { continue }; //igore files that don't end in .rs
+        if path.ends_with("/yield_in_closure.rs") { continue }; // test seems sensitive to compiler version
+        if path.ends_with("/yield_in_async.rs") { continue }; // test seems sensitive to compiler version
+        if path.ends_with("/yield_in_nested_fn.rs") { continue }; // test seems sensitive to compiler version
+        if path.ends_with("/unsoundness_issue_106.rs") { continue }; // test seems sensitive to compiler version
+        if path.ends_with("/unsoundness_issue_107.rs") { continue }; // test seems sensitive to compiler version
+        t.compile_fail(path);
+    }
 }