Skip Menu |

This queue is for tickets about the LMDB_File CPAN distribution.

Report information
The Basics
Id: 111305
Status: resolved
Priority: 0/
Queue: LMDB_File

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 0.08



Subject: Tests fail in non-English locales
On Debian and FreeBSD systems with German locale set (LC_ALL=de_DE.UTF-8) I see failures due to unexpected error messages: ... # Failed test 'Directory must exists' # at t/01-environment.t line 18. # expecting: Regexp ((?^:No such|cannot find)) # found: Datei oder Verzeichnis nicht gefunden at /home/cpansand/.cpan/build/2016012015/LMDB_File-0.07-p32Tpl/blib/lib/LMDB_File.pm line 95. # Failed test 'RO must exists' # at t/01-environment.t line 26. # expecting: Regexp ((?^:No such|cannot find)) # found: Datei oder Verzeichnis nicht gefunden at /home/cpansand/.cpan/build/2016012015/LMDB_File-0.07-p32Tpl/blib/lib/LMDB_File.pm line 95. # Failed test 'Copy needs a directory' # at t/01-environment.t line 244. # expecting: Regexp ((?^:No such)) # found: Datei oder Verzeichnis nicht gefunden at t/01-environment.t line 243. # Failed test 'An empty one, not myself' # at t/01-environment.t line 247. # expecting: Regexp ((?^i:file exists|error)) # found: Die Datei existiert bereits at t/01-environment.t line 246. ...
Slaven, Thank you for your report. In https://github.com/salortiz/LMDB_File/blob/master/t/01-environment.t#L11 the test in question tries to detect and adjust for other locales, but that code seems to be failing in your case. Can you review those lines and recommends me the best practice to avoid that kind of errors? Regards. El Mié Ene 20 11:36:39 2016, SREZIC escribió: Show quoted text
> On Debian and FreeBSD systems with German locale set > (LC_ALL=de_DE.UTF-8) I see failures due to unexpected error messages: > > ... > # Failed test 'Directory must exists' > # at t/01-environment.t line 18. > # expecting: Regexp ((?^:No such|cannot find)) > # found: Datei oder Verzeichnis nicht gefunden at > /home/cpansand/.cpan/build/2016012015/LMDB_File-0.07- > p32Tpl/blib/lib/LMDB_File.pm line 95. > > # Failed test 'RO must exists' > # at t/01-environment.t line 26. > # expecting: Regexp ((?^:No such|cannot find)) > # found: Datei oder Verzeichnis nicht gefunden at > /home/cpansand/.cpan/build/2016012015/LMDB_File-0.07- > p32Tpl/blib/lib/LMDB_File.pm line 95. > > # Failed test 'Copy needs a directory' > # at t/01-environment.t line 244. > # expecting: Regexp ((?^:No such)) > # found: Datei oder Verzeichnis nicht gefunden at t/01-environment.t > line 243. > > # Failed test 'An empty one, not myself' > # at t/01-environment.t line 247. > # expecting: Regexp ((?^i:file exists|error)) > # found: Die Datei existiert bereits at t/01-environment.t line 246. > ...
See https://github.com/salortiz/LMDB_File/pull/10 Tested on FreeBSD systems (9.2 + 10.1) and Debian/jessie, with LC_ALL=de_DE.UTF-8 and LANGUAGE=de. On 2016-01-20 17:55:29, SORTIZ wrote: Show quoted text
> Slaven, > > Thank you for your report. > > In https://github.com/salortiz/LMDB_File/blob/master/t/01- > environment.t#L11 the test in question tries to detect and adjust for > other locales, but that code seems to be failing in your case. > > Can you review those lines and recommends me the best practice to > avoid that kind of errors? > > Regards. > > El Mié Ene 20 11:36:39 2016, SREZIC escribió:
> > On Debian and FreeBSD systems with German locale set > > (LC_ALL=de_DE.UTF-8) I see failures due to unexpected error messages: > > > > ... > > # Failed test 'Directory must exists' > > # at t/01-environment.t line 18. > > # expecting: Regexp ((?^:No such|cannot find)) > > # found: Datei oder Verzeichnis nicht gefunden at > > /home/cpansand/.cpan/build/2016012015/LMDB_File-0.07- > > p32Tpl/blib/lib/LMDB_File.pm line 95. > > > > # Failed test 'RO must exists' > > # at t/01-environment.t line 26. > > # expecting: Regexp ((?^:No such|cannot find)) > > # found: Datei oder Verzeichnis nicht gefunden at > > /home/cpansand/.cpan/build/2016012015/LMDB_File-0.07- > > p32Tpl/blib/lib/LMDB_File.pm line 95. > > > > # Failed test 'Copy needs a directory' > > # at t/01-environment.t line 244. > > # expecting: Regexp ((?^:No such)) > > # found: Datei oder Verzeichnis nicht gefunden at t/01-environment.t > > line 243. > > > > # Failed test 'An empty one, not myself' > > # at t/01-environment.t line 247. > > # expecting: Regexp ((?^i:file exists|error)) > > # found: Die Datei existiert bereits at t/01-environment.t line 246. > > ...
Merged, thanks. El Jue Ene 21 02:12:25 2016, SREZIC escribió: Show quoted text