facebookincubator / oomd

A userspace out-of-memory killer
GNU General Public License v2.0
1.8k stars 143 forks source link

Fix meson build caused by static local variable #130

Closed lnyng closed 4 years ago

lnyng commented 4 years ago

Summary: Meson tests are failing because Senpai uses a static local variable, and meson runs all tests cases in the same executable. As the result, all test cases share the same static variable.

Move the static variable to the Senpai class so we can friend class the test class to reset it in SetUp().

Differential Revision: D21823597

facebook-github-bot commented 4 years ago

This pull request was exported from Phabricator. Differential Revision: D21823597

facebook-github-bot commented 4 years ago

This pull request was exported from Phabricator. Differential Revision: D21823597

facebook-github-bot commented 4 years ago

This pull request has been merged in facebookincubator/oomd@b96c4ebdac1959f4574501b2fba3068107eb482b.