This is an archive of the discontinued LLVM Phabricator instance.

[libcxx] [test] Split the TEST_HAS_SANITIZERS define into TEST_IS_SLOW
ClosedPublic

Authored by mstorsjo on Aug 9 2022, 3:53 AM.

Details

Summary

This makes its role clearer. It's plausible that one may want to manually
define TEST_IS_SLOW when running the tests in some environments - in
particular, it seems to be necessary to use the higher tolerance timeouts
if running the tests on Windows runners on Github Actions.

Diff Detail

Event Timeline

mstorsjo created this revision.Aug 9 2022, 3:53 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 9 2022, 3:53 AM
mstorsjo requested review of this revision.Aug 9 2022, 3:53 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 9 2022, 3:53 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript
mstorsjo updated this revision to Diff 451817.Aug 11 2022, 5:33 AM

Add the descriptive comment in one file where it was missing.

Mordante added inline comments.
libcxx/test/support/test_macros.h
196

I think the name TEST_IS_SLOW is a bit generic, we have slow tests that don't use this. (*cough* format)
How about TEST_IS_EXECUTED_IN_A_SLOW_ENVIRONMENT or something along these lines?

mstorsjo added inline comments.Aug 18 2022, 8:53 AM
libcxx/test/support/test_macros.h
196

Right, that makes sense. That macro sure is a mouthful, but it doesn’t need to be super convenient, so it’s probably fine. I can update the patch with that name later tonight.

mstorsjo updated this revision to Diff 453759.Aug 18 2022, 12:46 PM

Switched the name to TEST_IS_EXECUTED_IN_A_SLOW_ENVIRONMENT

ldionne accepted this revision.Aug 18 2022, 1:22 PM
This revision is now accepted and ready to land.Aug 18 2022, 1:22 PM