bug-gettext
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-gettext] Gettext 0.19.4 has buggy msgunfmt-3 test?


From: Max Lin
Subject: [bug-gettext] Gettext 0.19.4 has buggy msgunfmt-3 test?
Date: Mon, 09 Mar 2015 19:39:09 +0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0

Hi list,

On openSUSE Build Service we see gettext 0.19.4 has the random test failure in msgunfmt-3. I've trying to debugging it on my local machine, my first suspicion is about memory size, it looks like this test requires a certain enough number of virtual memory, otherwise it will test fail, for example, if I did 'ulimit -v 40000' on my local machine then it fails with test, but it does passed if sets unlimited. *But* I can not confirm it was memory related, so any debugging way/suggestion? or it is a known issue in 0.19.4 actually?

My test script below,
#! /bin/sh

# Test invalid or incomplete input
: ${MSGUNFMT=msgunfmt}

echo "round 1 with ulimit -v unlimited"
ulimit -v unlimited

for n in 1 2 3 4 5 6; do
#LANGUAGE= LC_ALL=C ${MSGUNFMT} "$abs_srcdir"/overflow-$n.mo 2>mu-3.err >/dev/null
  echo "test overflow-$n"
  LANGUAGE= LC_ALL=C msgunfmt overflow-$n.mo 2>mu-3.err >/dev/null
  test $? != 0 || echo "exit status is 0"
grep ' is truncated' mu-3.err >/dev/null || echo "doesn't truncated. test fail."
done

echo ""
echo "round 2 with ulimit -v 4000000"
ulimit -v 4000000

for n in 1 2 3 4 5 6; do
#LANGUAGE= LC_ALL=C ${MSGUNFMT} "$abs_srcdir"/overflow-$n.mo 2>mu-3.err >/dev/null
  echo "test overflow-$n"
  LANGUAGE= LC_ALL=C msgunfmt overflow-$n.mo 2>mu-3.err >/dev/null
  test $? != 0 || echo "exit status is 0"
grep ' is truncated' mu-3.err >/dev/null || echo "doesn't truncated. test fail."
done

output:
round 1 with ulimit -v unlimited
test overflow-1
test overflow-2
test overflow-3
test overflow-4
test overflow-5
test overflow-6

round 2 with ulimit -v 4000000
test overflow-1
test overflow-2
test overflow-3
doesn't truncated. test fail.
test overflow-4
test overflow-5
test overflow-6


Best regards,
Max



reply via email to

[Prev in Thread] Current Thread [Next in Thread]