]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Fixed up various command line option scenarios:
authorNicholas Nethercote <n.nethercote@gmail.com>
Tue, 15 Jun 2004 10:54:40 +0000 (10:54 +0000)
committerNicholas Nethercote <n.nethercote@gmail.com>
Tue, 15 Jun 2004 10:54:40 +0000 (10:54 +0000)
commit9ce21c9e699e41ffac4a5691da67f6a98220e987
tree12fdcfa317f793c4cc2c21d67c6a72e2c0c93148
parentbde18dba083fb58d5236261361b02e365153612e
Fixed up various command line option scenarios:
  - If no tool is specified, V now gives a short message and a list of
    available tools.  This was meant to happen previously, but a bug prevented
    it from working properly;  it gave the usage message instead.

  - If a bad option is given, V now gives a short message rather than the full
    --help.  This make V consistent with all other programs I looked at.

  - Now returning 0 when you do 'valgrind --help' and 'valgrind --version'
    as other programs do.

  - Removed VG_(startup_logging)() and VG_(shutdown_logging)() as they were
    empty and have been for a long time (always?).

  - Added various tests for these scenarios.  Had to change the regtest
    script slightly to allow for malformed command lines.

This addresses bug (wishlist) #82999.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2418
18 files changed:
coregrind/.cvsignore
coregrind/vg_main.c
none/tests/Makefile.am
none/tests/cmdline1.stderr.exp [new file with mode: 0644]
none/tests/cmdline1.stdout.exp [new file with mode: 0644]
none/tests/cmdline1.vgtest [new file with mode: 0644]
none/tests/cmdline2.stderr.exp [new file with mode: 0644]
none/tests/cmdline2.stdout.exp [new file with mode: 0644]
none/tests/cmdline2.vgtest [new file with mode: 0644]
none/tests/cmdline3.stderr.exp [new file with mode: 0644]
none/tests/cmdline3.vgtest [new file with mode: 0644]
none/tests/cmdline4.stderr.exp [new file with mode: 0644]
none/tests/cmdline4.vgtest [new file with mode: 0644]
none/tests/cmdline5.stderr.exp [new file with mode: 0644]
none/tests/cmdline5.vgtest [new file with mode: 0644]
none/tests/cmdline6.stderr.exp [new file with mode: 0644]
none/tests/cmdline6.vgtest [new file with mode: 0644]
tests/vg_regtest.in