Prevent warnings on stderr when <test-warning> is signaled during tests.