summaryrefslogtreecommitdiff
path: root/t/helper/test-read-cache.c
blob: 2a7990efc31d042121122a17890c623d7714c128 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "cache.h"
 
int cmd_main(int argc, const char **argv)
{
	int i, cnt = 1;
	if (argc == 2)
		cnt = strtol(argv[1], NULL, 0);
	for (i = 0; i < cnt; i++) {
		read_cache();
		discard_cache();
	}
	return 0;
}