summaryrefslogtreecommitdiff
path: root/test-chmtime.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-06-20 16:02:18 -0700
committerJunio C Hamano <gitster@pobox.com>2013-06-20 16:02:18 -0700
commitc0266ed2759fa1838384c37faa6d7264edaaf04b (patch)
treefef5a3e38e75495e8a91881e9c8a1b35c9e536c1 /test-chmtime.c
parent6aeb74ec89272be317f66869fde7c5144d528d5e (diff)
parent70836a6f8b71a945f074fc796c4241c2183b83a2 (diff)
downloadgit-c0266ed2759fa1838384c37faa6d7264edaaf04b.tar.gz
Merge branch 'js/test-ln-s-add'
Many tests that check the behaviour of symbolic links stored in the index or the tree objects do not have to be skipped on a filesystem that lack symbolic link support. * js/test-ln-s-add: t4011: remove SYMLINKS prerequisite t6035: use test_ln_s_add to remove SYMLINKS prerequisite t3509, t4023, t4114: use test_ln_s_add to remove SYMLINKS prerequisite t3100: use test_ln_s_add to remove SYMLINKS prerequisite t3030: use test_ln_s_add to remove SYMLINKS prerequisite t0000: use test_ln_s_add to remove SYMLINKS prerequisite tests: use test_ln_s_add to remove SYMLINKS prerequisite (trivial cases) tests: introduce test_ln_s_add t3010: modernize style test-chmtime: Fix exit code on Windows
Diffstat (limited to 'test-chmtime.c')
-rw-r--r--test-chmtime.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test-chmtime.c b/test-chmtime.c
index 923bf327f8..0df748784b 100644
--- a/test-chmtime.c
+++ b/test-chmtime.c
@@ -84,7 +84,7 @@ int main(int argc, char *argv[])
if (stat(argv[i], &sb) < 0) {
fprintf(stderr, "Failed to stat %s: %s\n",
argv[i], strerror(errno));
- return -1;
+ return 1;
}
#ifdef GIT_WINDOWS_NATIVE
@@ -92,7 +92,7 @@ int main(int argc, char *argv[])
chmod(argv[i], sb.st_mode | S_IWUSR)) {
fprintf(stderr, "Could not make user-writable %s: %s",
argv[i], strerror(errno));
- return -1;
+ return 1;
}
#endif
@@ -107,7 +107,7 @@ int main(int argc, char *argv[])
if (utb.modtime != sb.st_mtime && utime(argv[i], &utb) < 0) {
fprintf(stderr, "Failed to modify time on %s: %s\n",
argv[i], strerror(errno));
- return -1;
+ return 1;
}
}
@@ -115,5 +115,5 @@ int main(int argc, char *argv[])
usage:
fprintf(stderr, "usage: %s %s\n", argv[0], usage_str);
- return -1;
+ return 1;
}