LemonLDAPNG / Apache-Session-Browseable

Apache::Session::Browseable Perl module
http://search.cpan.org/dist/Apache-Session-Browseable/
Other
3 stars 5 forks source link

unserialize in DBI backend not working #10

Closed coudot closed 9 years ago

coudot commented 9 years ago

We can see that unit tests are not working with DBI backend:

clement@ader-xps:~/Projets/apache-session-browseable$ ./Build test
t/Apache-Session-Browseable-DBI.t ........... ok   
t/Apache-Session-Browseable-File.t .......... ok   
t/Apache-Session-Browseable-LDAP.t .......... ok   
t/Apache-Session-Browseable-Redis.t ......... ok   
t/Apache-Session-Browseable-SQLite.t ........ ok   
t/Apache-Session-Browseable-Store-DBI.t ..... ok   
t/Apache-Session-Browseable-Store-MySQL.t ... ok   
t/Apache-Session-Browseable-common.t ........ ok   
t/test-browseable-functions-using-SQLite.t .. 1/167 Can't use an undefined value as a subroutine reference at /home/clement/Projets/apache-session-browseable/blib/lib/Apache/Session/Browseable/DBI.pm line 127.
# Looks like you planned 167 tests but ran 29.
# Looks like your test exited with 2 just after 29.
t/test-browseable-functions-using-SQLite.t .. Dubious, test returned 2 (wstat 512, 0x200)
Failed 138/167 subtests 

Test Summary Report
-------------------
t/test-browseable-functions-using-SQLite.t (Wstat: 512 Tests: 29 Failed: 0)
  Non-zero exit status: 2
  Parse errors: Bad plan.  You planned 167 tests but ran 29.
Files=9, Tests=44,  1 wallclock secs ( 0.04 usr  0.00 sys +  0.34 cusr  0.07 csys =  0.45 CPU)
Result: FAIL
Failed 1/9 test programs. 0/44 subtests failed.

There is a typo in DBI.pm

coudot commented 9 years ago

Bug introduced in commit a5aedeb807525ad2ae1ff774d09dffe655119f41