This avoids using an libc++ internal macro in our tests.
Details
- Reviewers
ldionne - Group Reviewers
Restricted Project - Commits
- rGe72cedcb0119: [libc++][NFC] Add TEST_HAS_NO_INCOMPLETE_RANGES.
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Wouldn't the easier option be to add // UNSUPPORTED: has-no-incomplete-ranges? It seems a bit overkill to me to add a new macro for a single test.
I've considered that, but that would disable the entire test. Since the macro will be removed at some point I prefer to do it like this.
There are some other single occurrence macros where I want to discuss what the best approach will be. But I'll bring these macros up on Discord in the near future.
You said it yourself: The macro will be removed. We don't run any CI with _LIBCPP_HAS_NO_INCOMPLETE_RANGES, do we? If not I see no reason not do disable the entire test. It will only be disabled for those who don't ship ranges currently. I guess we should ask @ldionne what he thinks.
We do run CI with HAS_NO_INCOMPLETE_RANGES in the no-experimental CI job. Furthermore, that configuration is actually the default that we ship -- in other words, as far as users are concerned, they only see the library with HAS_NO_INCOMPLETE_RANGES, so it's important to test it if we can (until we can get rid of it entirely).