Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
tests: use a lowercase "usage:" string
Adjust test commands and test suites so that their
usage strings are consistent with Git.

Signed-off-by: David Aguilar <davvid@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
David Aguilar authored and Junio C Hamano committed Feb 25, 2013
1 parent 0b670ab commit b978403
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion t/lib-git-svn.sh
Expand Up @@ -148,7 +148,7 @@ stop_httpd () {
convert_to_rev_db () {
"$PERL_PATH" -w -- - "$@" <<\EOF
use strict;
@ARGV == 2 or die "Usage: convert_to_rev_db <input> <output>";
@ARGV == 2 or die "usage: convert_to_rev_db <input> <output>";
open my $wr, '+>', $ARGV[1] or die "$!: couldn't open: $ARGV[1]";
open my $rd, '<', $ARGV[0] or die "$!: couldn't open: $ARGV[0]";
my $size = (stat($rd))[7];
Expand Down
2 changes: 1 addition & 1 deletion t/t1509/prepare-chroot.sh
Expand Up @@ -14,7 +14,7 @@ xmkdir() {

R="$1"

[ -n "$R" ] || die "Usage: prepare-chroot.sh <root>"
[ -n "$R" ] || die "usage: prepare-chroot.sh <root>"
[ -x git ] || die "This script needs to be executed at git source code's top directory"
[ -x /bin/busybox ] || die "You need busybox"

Expand Down
2 changes: 1 addition & 1 deletion test-chmtime.c
Expand Up @@ -114,6 +114,6 @@ int main(int argc, const char *argv[])
return 0;

usage:
fprintf(stderr, "Usage: %s %s\n", argv[0], usage_str);
fprintf(stderr, "usage: %s %s\n", argv[0], usage_str);
return -1;
}
2 changes: 1 addition & 1 deletion test-delta.c
Expand Up @@ -23,7 +23,7 @@ int main(int argc, char *argv[])
unsigned long from_size, data_size, out_size;

if (argc != 5 || (strcmp(argv[1], "-d") && strcmp(argv[1], "-p"))) {
fprintf(stderr, "Usage: %s\n", usage_str);
fprintf(stderr, "usage: %s\n", usage_str);
return 1;
}

Expand Down
2 changes: 1 addition & 1 deletion test-genrandom.c
Expand Up @@ -12,7 +12,7 @@ int main(int argc, char *argv[])
unsigned char *c;

if (argc < 2 || argc > 3) {
fprintf(stderr, "Usage: %s <seed_string> [<size>]\n", argv[0]);
fprintf(stderr, "usage: %s <seed_string> [<size>]\n", argv[0]);
return 1;
}

Expand Down

0 comments on commit b978403

Please sign in to comment.