summaryrefslogtreecommitdiff
path: root/t/helper
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2017-04-19 21:37:25 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-04-19 21:37:25 -0700
commit8377f34540a33074df10ffcf27c6e90f9c88c847 (patch)
tree490553754534e06e6e2d616d89b01ecd0a1115b0 /t/helper
parentMerge branch 'vn/revision-shorthand-for-side-branch-log' (diff)
parentp0004: make perf test executable (diff)
downloadtgif-8377f34540a33074df10ffcf27c6e90f9c88c847.tar.xz
Merge branch 'jh/memihash-opt'
Hotfix for a topic that is already in 'master'. * jh/memihash-opt: p0004: make perf test executable t3008: skip lazy-init test on a single-core box test-online-cpus: helper to return cpu count name-hash: fix buffer overrun
Diffstat (limited to 't/helper')
-rw-r--r--t/helper/.gitignore1
-rw-r--r--t/helper/test-online-cpus.c8
2 files changed, 9 insertions, 0 deletions
diff --git a/t/helper/.gitignore b/t/helper/.gitignore
index d1fa751cf9..acd5db180f 100644
--- a/t/helper/.gitignore
+++ b/t/helper/.gitignore
@@ -16,6 +16,7 @@
/test-match-trees
/test-mergesort
/test-mktemp
+/test-online-cpus
/test-parse-options
/test-path-utils
/test-prio-queue
diff --git a/t/helper/test-online-cpus.c b/t/helper/test-online-cpus.c
new file mode 100644
index 0000000000..06c09c6b88
--- /dev/null
+++ b/t/helper/test-online-cpus.c
@@ -0,0 +1,8 @@
+#include "git-compat-util.h"
+#include "thread-utils.h"
+
+int cmd_main(int argc, const char **argv)
+{
+ printf("%d\n", online_cpus());
+ return 0;
+}