#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
This commit is contained in:
Rich Prohaska 2013-04-17 00:00:13 -04:00 committed by Yoni Fogel
parent 5467a05231
commit 15bf942a37

View file

@ -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);