You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Jeff King
cc61cf465f
test-ref-store: avoid passing NULL to printf
...
It's possible for resolve_ref_unsafe() to return NULL (e.g.,
if we are reading and the ref does not exist), in which case
we'll pass NULL to printf. On glibc systems this produces
"(null)", but on others it may segfault.
The tests don't expect any such case, but if we ever did
trigger this, we would prefer to cleanly fail the test with
unexpected input rather than segfault. Let's manually
replace NULL with "(null)". The exact value doesn't matter,
as it won't match any possible ref the caller could expect
(and anyway, the exit code of the program will tell whether
"ref" is valid or not).
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
7 years ago
..
.gitignore
Add t/helper/test-write-cache to .gitignore
8 years ago
test-chmtime.c
…
test-config.c
config: don't include config.h by default
8 years ago
test-ctype.c
…
test-date.c
timestamp_t: a new data type for timestamps
8 years ago
test-delta.c
avoid "write_in_full(fd, buf, len) != len" pattern
7 years ago
test-dump-cache-tree.c
Convert struct cache_tree to use struct object_id
8 years ago
test-dump-split-index.c
…
test-dump-untracked-cache.c
…
test-fake-ssh.c
…
test-genrandom.c
…
test-hashmap.c
hashmap: add API to disable item counting when threaded
8 years ago
test-index-version.c
…
test-lazy-init-name-hash.c
name-hash: add test-lazy-init-name-hash
8 years ago
test-line-buffer.c
test-line-buffer: simplify command parsing
7 years ago
test-match-trees.c
tree: convert parse_tree_indirect to struct object_id
8 years ago
test-mergesort.c
…
test-mktemp.c
…
test-online-cpus.c
test-online-cpus: helper to return cpu count
8 years ago
test-parse-options.c
t0040,t1502: Demonstrate parse_options bugs
7 years ago
test-path-utils.c
test-path-utils: handle const parameter of basename and dirname
8 years ago
test-prio-queue.c
…
test-read-cache.c
test-read-cache: setup git dir
8 years ago
test-ref-store.c
test-ref-store: avoid passing NULL to printf
7 years ago
test-regex.c
…
test-revision-walking.c
…
test-run-command.c
…
test-scrap-cache-tree.c
hold_locked_index(): align error handling with hold_lockfile_for_update()
8 years ago
test-sha1-array.c
Rename sha1_array to oid_array
8 years ago
test-sha1.c
…
test-sha1.sh
…
test-sigchain.c
…
test-strcmp-offset.c
Spelling fixes
8 years ago
test-string-list.c
test-stringlist: avoid buffer underrun when sorting nothing
7 years ago
test-submodule-config.c
submodule: remove gitmodules_config
8 years ago
test-subprocess.c
…
test-svn-fe.c
…
test-urlmatch-normalization.c
…
test-wildmatch.c
wildmatch: remove unused wildopts parameter
8 years ago
test-write-cache.c
perf: add test for writing the index
8 years ago