[libc-commits] [libc] [libc] Use `LIBC_COPT_PUBLIC_PACKAGING` for hermetic and integration tests. (PR #79319)
Guillaume Chatelet via libc-commits
libc-commits at lists.llvm.org
Fri Jan 26 08:26:09 PST 2024
================
@@ -432,7 +432,7 @@ add_libc_unittest(
add_libc_test(
getopt_test
- HERMETIC_TEST_ONLY # Uses libc's own stderr
+ UNIT_TEST_ONLY # set_getopt_state only exposed for __internal__ target.
----------------
gchatelet wrote:
The comment makes sense in the context of the review but probably not when reading this line alone.
Maybe a comment above `add_libc_test` saying
"getopt_test requires access to set_getopt_state which is only available for __internal_ targets, hence the use of UNIT_TEST_ONLY instead of HERMETIC_TEST_ONLY"
https://github.com/llvm/llvm-project/pull/79319
More information about the libc-commits
mailing list