summaryrefslogtreecommitdiff
path: root/tools/test
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2012-06-27 20:34:29 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2012-06-27 20:34:29 +0000
commit044eae4c80122d134b594eeb51618be0268f4767 (patch)
tree22cf7e6cf7d52981ca0e911528df1f06429586ae /tools/test
parenta87855124ca1076938598c469b52c4cd95cb4ae8 (diff)
downloadsrc-test2-044eae4c80122d134b594eeb51618be0268f4767.tar.gz
src-test2-044eae4c80122d134b594eeb51618be0268f4767.zip
Notes
Diffstat (limited to 'tools/test')
-rw-r--r--tools/test/auxinfo/auxinfo.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/test/auxinfo/auxinfo.c b/tools/test/auxinfo/auxinfo.c
index 374bed8b4299..a855b543f270 100644
--- a/tools/test/auxinfo/auxinfo.c
+++ b/tools/test/auxinfo/auxinfo.c
@@ -47,6 +47,13 @@ test_osreldate(void)
printf("OSRELDATE: %d\n", getosreldate());
}
+static void
+test_ncpus(void)
+{
+
+ printf("NCPUs: %ld\n", sysconf(_SC_NPROCESSORS_CONF));
+}
+
int
main(int argc __unused, char *argv[] __unused)
{
@@ -54,5 +61,6 @@ main(int argc __unused, char *argv[] __unused)
test_pagesizes();
test_pagesize();
test_osreldate();
+ test_ncpus();
return (0);
}