In the review comments for that commit:
https://github.com/mesonbuild/meson/pull/5725#discussion_r308775732
The basic idea here seems to be that we want to test that the
is_disabler() function doesn't *leak* a disabler object. Running this
function should never be optimized away like regular use of an assert
would do -- thus, the test actually asserts that the has_not_changed
variable *has* changed, heh.
One of the tests does actually test disabler objects themselves. I don't
think we strictly need to add tests of the is_disabler() function to so
many places, but on the other hand it's pretty fast to do pure
configure-time asserts.
--
Eli Schwartz