File: disable-testdata-tests.patch

package info (click to toggle)
rust-regex-lite 0.1.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 528 kB
  • sloc: makefile: 2
file content (37 lines) | stat: -rw-r--r-- 835 bytes parent folder | download | duplicates (2)
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
33
34
35
36
37
--- a/tests/lib.rs
+++ b/tests/lib.rs
@@ -7,7 +7,7 @@
     "line-terminator",
 ];
 
-fn suite() -> anyhow::Result<regex_test::RegexTests> {
+/*fn suite() -> anyhow::Result<regex_test::RegexTests> {
     let mut tests = regex_test::RegexTests::new();
     macro_rules! load {
         ($name:expr) => {{
@@ -47,4 +47,4 @@
     load!("regex-lite");
 
     Ok(tests)
-}
+}*/
--- a/tests/string.rs
+++ b/tests/string.rs
@@ -7,7 +7,7 @@
 };
 
 /// Tests the default configuration of the hybrid NFA/DFA.
-#[test]
+/*#[test]
 fn default() -> Result<()> {
     let mut runner = TestRunner::new()?;
     runner
@@ -16,7 +16,7 @@
         .test_iter(crate::suite()?.iter(), compiler)
         .assert();
     Ok(())
-}
+}*/
 
 fn run_test(re: &Regex, test: &RegexTest) -> TestResult {
     let hay = match std::str::from_utf8(test.haystack()) {