Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,9 @@ test32: xxhsum32
TEST_FILES = xxhsum$(EXT) xxhash.c xxhash.h
.PHONY: test-xxhsum-c
test-xxhsum-c: xxhsum
# --seed requires a value
./xxhsum --seed 2>&1 | $(GREP) -q "^Wrong parameters"
./xxhsum -H0 --seed 2>&1 | $(GREP) -q "^Wrong parameters"
# xxhsum to/from pipe
./xxhsum $(TEST_FILES) | ./xxhsum -c -
./xxhsum -H0 $(TEST_FILES) | ./xxhsum -c -
Expand Down
1 change: 1 addition & 0 deletions cli/xxhsum.c
Original file line number Diff line number Diff line change
Expand Up @@ -1615,6 +1615,7 @@ XSUM_API int XSUM_main(int argc, const char* argv[])
if (!strcmp(argument, "--seed") ){
const char* seed_str;
i++;
if (i >= argc) return XSUM_badusage(exename);
seed_str = argv[i];
switch( algo ){
case algo_xxh32 : g_default_seed_u32 = XSUM_readU32FromChar(&seed_str); break;
Expand Down
Loading