[libc][test] Split PigweedTest.h out of GTest.h (#247278)
Test.h previously routed LIBC_COPT_TEST_USE_PIGWEED to GTest.h with a
TODO to migrate Pigweed onto LIBC_COPT_TEST_USE_GTEST. However,
Pigweed's pw_unit_test:light backend does not provide ::testing::Matcher
or gmock-style matchers, so sharing GTest.h fails to compile against
pw_unit_test:light and leaves LIBC_TEST_HAS_MATCHERS() enabled when
matchers are unavailable.
Give LIBC_COPT_TEST_USE_PIGWEED its own minimal PigweedTest.h adapter
that exports LIBC_NAMESPACE::testing::Test from <gtest/gtest.h> and
defines LIBC_TEST_HAS_MATCHERS() as (0), matching ZxTest.h. This keeps
Pigweed builds working against pw_unit_test:light while allowing GTest.h
to rely on real GoogleTest and GoogleMock facilities.
Part of #91630
Assisted-by: Gemini
[TSan][Darwin] Fix false positive data race reports in __copy_helper_block in xpc_* interceptors (#243231)
I have been seeing false positive data race reports on
__copy_helper_block* functions occurring in xpc_* interceptors. This is
happening because the generated copy helper runs after the Release in
the interceptor, and writes memory that gets accessed on another thread
when the block actually executes.
This patch adopts the explicit Block_copy approach used by the
dispatch_* interceptors. This works because it forces the memory writes
to occur before the Release, so that the accesses in the block can see
the happens-before relationship to the block copy. It also adjusts the
xpc.mm test to force copy helpers to be generated - without the
interceptor fixes, these would produce false positive race reports.
Assisted by LLMs
rdar://192918489
[lldb] Reorganize the lldb-index-cache settings (#244411)
I mentioned in a Discourse post that I want to reorganize the
DataFileCache settings to reflect how I'm growing its use
https://discourse.llvm.org/t/settings-for-lldbs-datafilecache-as-i-add-new-things-in-there/92701/8
I added a new feature to settings to mark them as
Deprecated, and issue a warning redirecting them to a new setting in
https://github.com/llvm/llvm-project/pull/243732
This changes the old settings
```
symbols.enable-lldb-index-cache default off
symbols.lldb-index-cache-expiration-days default 7
symbols.lldb-index-cache-max-byte-size
symbols.lldb-index-cache-max-percent
symbols.lldb-index-cache-path
[36 lines not shown]
[CAS] Skip validate-if-needed for plugins that don't support it (#247305)
`llvm-cas validate-if-needed` failed when the CAS plugin doesn't
implement llcas_cas_validate_if_needed, and with --allow-recovery it
then also attempted recovery, which fails for plugins without
llcas_cas_recover_ondisk_data. Such a plugin can't be validated, so
skip validation instead and exit successfully.
Report the missing function with std::errc::not_supported so llvm-cas
can tell it apart from other validation errors.
rdar://193900425