[PATCH] D91575: [GWP-ASan] Port tests to Fuchsia
Kostya Kortchinsky via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 16 15:34:44 PST 2020
cryptoad created this revision.
cryptoad added reviewers: mcgrathr, phosek, hctim, eugenis.
Herald added a project: Sanitizers.
Herald added a subscriber: Sanitizers.
cryptoad requested review of this revision.
This modifies the tests so that they can be run on Fuchsia:
- add the necessary includes for `set`/`vector` etc
- do the few modifications required to use zxtest instead og gtest
`backtrace.cpp` requires stacktrace support that Fuchsia doesn't have
yet, and `enable_disable.cpp` currently uses `fork()` which Fuchsia
doesn't support yet. I'll revisit this later.
I chose to use `harness.h` to hold my "platform-specific" include and
namespace, and using this header in tests rather than `gtest.h`,
which I am open to change if someone would rather go another direction.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D91575
Files:
compiler-rt/lib/gwp_asan/tests/alignment.cpp
compiler-rt/lib/gwp_asan/tests/compression.cpp
compiler-rt/lib/gwp_asan/tests/crash_handler_api.cpp
compiler-rt/lib/gwp_asan/tests/driver.cpp
compiler-rt/lib/gwp_asan/tests/harness.cpp
compiler-rt/lib/gwp_asan/tests/harness.h
compiler-rt/lib/gwp_asan/tests/iterate.cpp
compiler-rt/lib/gwp_asan/tests/late_init.cpp
compiler-rt/lib/gwp_asan/tests/mutex_test.cpp
compiler-rt/lib/gwp_asan/tests/slot_reuse.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D91575.305615.patch
Type: text/x-patch
Size: 5699 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201116/f5de0dab/attachment.bin>
More information about the llvm-commits
mailing list