Bug 8238 - t/sa_txrep.t fails when using SDBM_File
Summary: t/sa_txrep.t fails when using SDBM_File
Status: RESOLVED FIXED
Alias: None
Product: Spamassassin
Classification: Unclassified
Component: Regression Tests (show other bugs)
Version: 4.0.1
Hardware: All All
: P2 normal
Target Milestone: 4.0.2
Assignee: SpamAssassin Developer Mailing List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-14 16:50 UTC by Sidney Markowitz
Modified: 2024-04-14 17:01 UTC (History)
1 user (show)



Attachment Type Modified Status Actions Submitter/CLA Status

Note You need to log in before you can comment on or make changes to this bug.
Description Sidney Markowitz 2024-04-14 16:50:36 UTC
The t/sa_txrep.t test fails if it is using SDBM_File for storage.

The fix is trivial. The test has unlink("./$userstate/txreptest") to delete the storage files is creates in the first set of tests before starting a second set. That is fins with DB_File and GDBM_File, but SDBM_File creates txreptes.pag and txreptest.dir files which need to be deleted when it is used.
Comment 1 Sidney Markowitz 2024-04-14 17:01:13 UTC
% svn ci -m "bug 8238 delete SDBM_File files during cleanuo in test"  t/sa_txrep.t
Sending        t/sa_txrep.t
Transmitting file data .done
Committing transaction...
Committed revision 1916985.