All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] LVM2: fix t-000-basic.sh
@ 2007-12-04 22:10 Jun'ichi Nomura
  2007-12-05  9:51 ` Jim Meyering
  0 siblings, 1 reply; 2+ messages in thread
From: Jun'ichi Nomura @ 2007-12-04 22:10 UTC (permalink / raw)
  To: lvm-devel

Hi,

The testcase t-000-basic.sh doesn't work for me.
  - It executes 'lvm' and sees the return code.
    However, when readline support is enabled, it waits for user input.
    So 'make check' stalls.
  - It expects return code '3'.
    However, with the current CVS head, any of the followings return '0':
      o 'lvm' without readline support
      o 'lvm version'
      o 'lvm < /dev/null'

The purpose of the test is to check if lvm is built.
I think the test can be achieved with 'lvm version'.

Thanks,
-- 
Jun'ichi Nomura, NEC Corporation of America
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lvm2-fix-t-000-basic.patch
Type: text/x-patch
Size: 606 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/lvm-devel/attachments/20071204/4aba7479/attachment.bin>

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH] LVM2: fix t-000-basic.sh
  2007-12-04 22:10 [PATCH] LVM2: fix t-000-basic.sh Jun'ichi Nomura
@ 2007-12-05  9:51 ` Jim Meyering
  0 siblings, 0 replies; 2+ messages in thread
From: Jim Meyering @ 2007-12-05  9:51 UTC (permalink / raw)
  To: lvm-devel

"Jun'ichi Nomura" <j-nomura@ce.jp.nec.com> wrote:
> Hi,
>
> The testcase t-000-basic.sh doesn't work for me.
>   - It executes 'lvm' and sees the return code.
>     However, when readline support is enabled, it waits for user input.
>     So 'make check' stalls.
>   - It expects return code '3'.
>     However, with the current CVS head, any of the followings return '0':
>       o 'lvm' without readline support
>       o 'lvm version'
>       o 'lvm < /dev/null'
>
> The purpose of the test is to check if lvm is built.
> I think the test can be achieved with 'lvm version'.
>
> Thanks,

Thank you.
I committed it with the following log entry:
(FYI, the last two lines are added automatically when I run
git-cvsexportcommit to export the commit from my git-based
tree to the mast cvs-based one)

        Avoid spurious test failure when compiled with readline support.

        * test/t-000-basic.sh: Invoke initial test of lvm with its "version"
        argument, so that the behavior of the tool doesn't depend on whether
        readline was enabled at configure time.


        Author: Jun'ichi Nomura <j-nomura@ce.jp.nec.com>
        Committer: Jim Meyering <meyering@redhat.com>



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-12-05  9:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-04 22:10 [PATCH] LVM2: fix t-000-basic.sh Jun'ichi Nomura
2007-12-05  9:51 ` Jim Meyering

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.