Author: sidney
Date: Sun Jun 19 04:10:57 2022
New Revision: 1902053
URL: http://svn.apache.org/viewvc?rev=1902053&view=rev
Log:
bug 8003 - Fix bayesbdb.t not closing db files during test, now works on Windows
Modified:
spamassassin/trunk/t/bayesbdb.t
Modified: spamassassin/trunk/t/bayesbdb.t
URL: http://svn.apache.org/viewvc/spamassassin/trunk/t/bayesbdb.t?rev=1902053&r1=1902052&r2=1902053&view=diff
==============================================================================
--- spamassassin/trunk/t/bayesbdb.t (original)
+++ spamassassin/trunk/t/bayesbdb.t Sun Jun 19 04:10:57 2022
@@ -8,7 +8,6 @@ use constant HAS_BDB => eval { require B
use Test::More;
-plan skip_all => "Bug 8003 - Investigate if can be made to work on windows" if $RUNNING_ON_WINDOWS;
plan skip_all => "Long running tests disabled" unless conf_bool('run_long_tests');
plan skip_all => "BerkeleyDB is unavailable" unless HAS_BDB;
@@ -141,6 +140,8 @@ ok(!getimpl->{store}->seen_get($msgid));
getimpl->{store}->untie_db();
+getimpl->{store}->_close_db(); # on Windows the following sa_t_init can't delete the old files without this close
+
undef $sa;
sa_t_init('bayesbdb'); # this wipes out what is there and begins anew
Date: Sun Jun 19 04:10:57 2022
New Revision: 1902053
URL: http://svn.apache.org/viewvc?rev=1902053&view=rev
Log:
bug 8003 - Fix bayesbdb.t not closing db files during test, now works on Windows
Modified:
spamassassin/trunk/t/bayesbdb.t
Modified: spamassassin/trunk/t/bayesbdb.t
URL: http://svn.apache.org/viewvc/spamassassin/trunk/t/bayesbdb.t?rev=1902053&r1=1902052&r2=1902053&view=diff
==============================================================================
--- spamassassin/trunk/t/bayesbdb.t (original)
+++ spamassassin/trunk/t/bayesbdb.t Sun Jun 19 04:10:57 2022
@@ -8,7 +8,6 @@ use constant HAS_BDB => eval { require B
use Test::More;
-plan skip_all => "Bug 8003 - Investigate if can be made to work on windows" if $RUNNING_ON_WINDOWS;
plan skip_all => "Long running tests disabled" unless conf_bool('run_long_tests');
plan skip_all => "BerkeleyDB is unavailable" unless HAS_BDB;
@@ -141,6 +140,8 @@ ok(!getimpl->{store}->seen_get($msgid));
getimpl->{store}->untie_db();
+getimpl->{store}->_close_db(); # on Windows the following sa_t_init can't delete the old files without this close
+
undef $sa;
sa_t_init('bayesbdb'); # this wipes out what is there and begins anew