File: 0005-disable-bdb-test.patch

package info (click to toggle)
bsfilter 1%3A1.0.20~rc6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 800 kB
  • sloc: ruby: 3,644; lisp: 178; sh: 51; makefile: 13
file content (76 lines) | stat: -rw-r--r-- 2,337 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
Description: skip bdb test
Author: Youhei SASAKI <uwabami@gfd-dennou.org>
Date: Thu, 12 Dec 2024 17:10:39 +0900
Origin: vendor
Forwarded: not-needed

Signed-off-by: Youhei SASAKI <uwabami@gfd-dennou.org>
---
 test/test.rb | 40 ----------------------------------------
 1 file changed, 40 deletions(-)

diff --git a/test/test.rb b/test/test.rb
index a7c94f8..c3a682e 100644
--- a/test/test.rb
+++ b/test/test.rb
@@ -68,9 +68,6 @@ def unlink_all
   unlink_prob_sdbm({:force => true})
   unlink_token_sdbm({:force => true})

-  unlink_prob_bdb({:force => true})
-  unlink_token_bdb({:force => true})
-
   unlink_prob_qdbm({:force => true})
   unlink_token_qdbm({:force => true})
 end
@@ -118,24 +115,6 @@ def unlink_token_sdbm(options = {})
                   "ja.spam.sdbm.lock"], **options)
 end

-def unlink_prob_bdb(options = {})
-    FileUtils.rm(["C.prob.bdb",
-                  "C.prob.bdb.lock",
-                  "ja.prob.bdb",
-                  "ja.prob.bdb.lock"], **options)
-end
-
-def unlink_token_bdb(options = {})
-    FileUtils.rm(["C.clean.bdb",
-                  "C.clean.bdb.lock",
-                  "ja.clean.bdb",
-                  "ja.clean.bdb.lock",
-                  "C.spam.bdb",
-                  "C.spam.bdb.lock",
-                  "ja.spam.bdb",
-                  "ja.spam.bdb.lock"], **options)
-end
-
 def unlink_prob_qdbm(options = {})
     FileUtils.rm(["C.prob.qdbm",
                   "C.prob.qdbm.lock",
@@ -390,25 +369,6 @@ class TestDBM < Test::Unit::TestCase
     unlink_prob_sdbm
   end

-  def test_bdb
-    assert_nothing_raised('Warning: ignore this test if BDB is NOT installed') do
-      @bsfilter.setup($default_options + ["--db", "bdb", "-c"])
-    end
-    @bsfilter.use_dummyfh
-    @bsfilter.run(@files)
-    assert(File::readable?("ja.clean.bdb"), "ja.clean.bdb")
-    assert(File::readable?("C.clean.bdb"), "C.clean.bdb")
-
-    @bsfilter.setup($default_options + ["--db", "bdb", "-u"])
-    @bsfilter.use_dummyfh
-    @bsfilter.run([])
-    assert(File::readable?("ja.prob.bdb"), "ja.prob.bdb")
-    assert(File::readable?("C.prob.bdb"), "C.prob.bdb")
-
-    unlink_token_bdb
-    unlink_prob_bdb
-  end
-
   def test_qdbm
     assert_nothing_raised('Warning: ignore this test if QDBM is NOT installed') do
       @bsfilter.setup($default_options + ["--db", "qdbm", "-c"])