[all-commits] [llvm/llvm-project] 96b760: [scudo] Fix EXPECT_DEATH tests

Vitaly Buka via All-commits all-commits at lists.llvm.org
Thu May 20 17:08:37 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 96b760607f8e82e563dc8cac67b2d2dfb76d5d33
      https://github.com/llvm/llvm-project/commit/96b760607f8e82e563dc8cac67b2d2dfb76d5d33
  Author: Vitaly Buka <vitalybuka at google.com>
  Date:   2021-05-20 (Thu, 20 May 2021)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/tests/map_test.cpp
    M compiler-rt/lib/scudo/standalone/tests/secondary_test.cpp

  Log Message:
  -----------
  [scudo] Fix EXPECT_DEATH tests

Put allocate/deallocate next to memory
access inside EXPECT_DEATH block.
This way we reduce probability that memory is not mapped
by unrelated code.

It's still not absolutely guaranty that mmap does not
happen so we repeat it few times to be sure.

Reviewed By: cryptoad

Differential Revision: https://reviews.llvm.org/D102886




More information about the All-commits mailing list