Commit d73988be authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

#4593 fix the get-active-cpus linux test to work with TOKU_NCPUS closes[t:4593]

git-svn-id: file:///svn/toku/tokudb@40526 c7de825b-a66e-492c-adef-691d508d4ae1
parent 72f89937
......@@ -14,6 +14,8 @@ static void set_cpuset(cpu_set_t *cpuset, int ncpus) {
int main(void) {
int r;
r = unsetenv("TOKU_NCPUS");
assert(r == 0);
int max_cpus = sysconf(_SC_NPROCESSORS_ONLN);
assert(toku_os_get_number_active_processors() == max_cpus);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment