git/t/helper/test-online-cpus.c
Jeff Hostetler e3482ccf27 test-online-cpus: helper to return cpu count
Created helper executable to print the value of online_cpus()
allowing multi-threaded tests to be skipped when appropriate.

Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2017-04-12 23:17:19 -07:00

8 lines
145 B
C

#include "git-compat-util.h"
#include "thread-utils.h"
int cmd_main(int argc, const char **argv)
{
printf("%d\n", online_cpus());
return 0;
}