Add a test for number of CPUs configured/online.
MFC after: 1 week
This commit is contained in:
parent
a87855124c
commit
044eae4c80
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=237661
@ -47,6 +47,13 @@ test_osreldate(void)
|
|||||||
printf("OSRELDATE: %d\n", getosreldate());
|
printf("OSRELDATE: %d\n", getosreldate());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
test_ncpus(void)
|
||||||
|
{
|
||||||
|
|
||||||
|
printf("NCPUs: %ld\n", sysconf(_SC_NPROCESSORS_CONF));
|
||||||
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
main(int argc __unused, char *argv[] __unused)
|
main(int argc __unused, char *argv[] __unused)
|
||||||
{
|
{
|
||||||
@ -54,5 +61,6 @@ main(int argc __unused, char *argv[] __unused)
|
|||||||
test_pagesizes();
|
test_pagesizes();
|
||||||
test_pagesize();
|
test_pagesize();
|
||||||
test_osreldate();
|
test_osreldate();
|
||||||
|
test_ncpus();
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user