[scudo] Update ring buffer test to make it accept zero size
authorChia-hung Duan <chiahungduan@google.com>
Wed, 15 Feb 2023 01:23:13 +0000 (01:23 +0000)
committerChia-hung Duan <chiahungduan@google.com>
Wed, 15 Feb 2023 01:23:39 +0000 (01:23 +0000)
commitdfacba5af0fb5dcdbf269b97258e435007276bf1
tree2ad8f5c47f1b134e842cd9bf2b17ff18a92c2294
parent766065aa6553df4030e6f563b066410fcee9d751
[scudo] Update ring buffer test to make it accept zero size

allocation ring buffer is allowed to be zero. Update the logic in the
test so that on the platform that disables it won't fail this case.

Reviewed By: fmayer

Differential Revision: https://reviews.llvm.org/D144055
compiler-rt/lib/scudo/standalone/tests/combined_test.cpp