mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 14:54:20 +01:00
#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:
parent
5467a05231
commit
15bf942a37
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue