[all-commits] [llvm/llvm-project] 3b8b5d: [sanitizer_common][test] Handle missing REG_STARTE...

rorth via All-commits all-commits at lists.llvm.org
Wed Mar 17 01:57:48 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3b8b5d1f22f2c5d8ae55709a92d02011dea056ca
      https://github.com/llvm/llvm-project/commit/3b8b5d1f22f2c5d8ae55709a92d02011dea056ca
  Author: Rainer Orth <ro at gcc.gnu.org>
  Date:   2021-03-17 (Wed, 17 Mar 2021)

  Changed paths:
    M compiler-rt/test/sanitizer_common/TestCases/Posix/regex_startend.cpp

  Log Message:
  -----------
  [sanitizer_common][test] Handle missing REG_STARTEND in Posix/regex_startend.cpp

As reported in D96348 <https://reviews.llvm.org/D96348>, the
`Posix/regex_startend.cpp` test `FAIL`s on Solaris because
`REG_STARTEND` isn't defined.  It's a BSD extension not present everywhere.
E.g. AIX doesn't have it, too.

Fixed by wrapping the test in `#ifdef REG_STARTEND`.

Tested on `amd64-pc-solaris2.11`, `sparcv9-sun-solaris2.11`, and
`x86_64-pc-linux-gnu`.

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




More information about the All-commits mailing list