Code

gettext tests: test if $VERSION exists before using it
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Mon, 30 Aug 2010 19:35:24 +0000 (19:35 +0000)
committerÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Sat, 30 Oct 2010 07:10:07 +0000 (07:10 +0000)
commit0a31d166d1f52f1dc744d1441049eb1433a98a5f
tree7c0c4f5aafc93afffa67617c69e879f007ba5767
parentbad5fe6ba226250dd448c141ea3d9196243f4790
gettext tests: test if $VERSION exists before using it

Versions of Locale::Messages before 1.17 didn't have a $VERSION
variable. This caused test failures on boxes that had this old version
installed, since the warnings pragma emits warnings on STDERR, which
fails the test.

Change the test to work around this by first checking if the $VERSION
variable is defined before using it.

Reported-by: Jens Lehmann <Jens.Lehmann@web.de>
Tested-by: Jens Lehmann <Jens.Lehmann@web.de>
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
t/t0202/test.pl