[all-commits] [llvm/llvm-project] c40c3b: [libc++] Convert test-suite workarounds for some C...

Louis Dionne via All-commits all-commits at lists.llvm.org
Wed Aug 18 09:03:09 PDT 2021


  Branch: refs/heads/release/13.x
  Home:   https://github.com/llvm/llvm-project
  Commit: c40c3bfa9a879510af230b75252c904a9af40f77
      https://github.com/llvm/llvm-project/commit/c40c3bfa9a879510af230b75252c904a9af40f77
  Author: Louis Dionne <ldionne.2 at gmail.com>
  Date:   2021-08-18 (Wed, 18 Aug 2021)

  Changed paths:
    R libcxx/test/libcxx/language.support/has_aligned_alloc.compile.pass.cpp
    R libcxx/test/libcxx/language.support/has_quick_exit.compile.pass.cpp
    R libcxx/test/libcxx/language.support/has_timespec_get.compile.pass.cpp
    M libcxx/test/std/depr/depr.c.headers/stdlib_h.pass.cpp
    M libcxx/test/std/language.support/support.runtime/cstdlib.pass.cpp
    M libcxx/test/std/language.support/support.runtime/ctime.pass.cpp
    R libcxx/test/std/language.support/support.start.term/at_quick_exit.compile.fail.cpp
    R libcxx/test/std/language.support/support.start.term/quick_exit.compile.fail.cpp
    M libcxx/test/std/language.support/support.start.term/quick_exit.pass.cpp
    M libcxx/test/std/utilities/time/date.time/ctime.pass.cpp
    M libcxx/test/support/test_macros.h

  Log Message:
  -----------
  [libc++] Convert test-suite workarounds for some C11 features to XFAILs

Instead of trying to sniff out what features are supported by the
library being tested, the way we normally handle these things is with
Lit annotations. This should not be treated differently.

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

(cherry picked from commit ed7c81d1726c7ecd03d1bc13eeb8d23fdffa5751)


  Commit: 404024f9adc1b0bb4b88e687472fc0c44cc6f6a2
      https://github.com/llvm/llvm-project/commit/404024f9adc1b0bb4b88e687472fc0c44cc6f6a2
  Author: Louis Dionne <ldionne.2 at gmail.com>
  Date:   2021-08-18 (Wed, 18 Aug 2021)

  Changed paths:
    A libcxx/test/std/depr/depr.c.headers/stdlib_h.aligned_alloc.compile.pass.cpp
    M libcxx/test/std/depr/depr.c.headers/stdlib_h.pass.cpp
    A libcxx/test/std/language.support/support.runtime/cstdlib.aligned_alloc.compile.pass.cpp
    M libcxx/test/std/language.support/support.runtime/cstdlib.pass.cpp
    M libcxx/test/std/language.support/support.runtime/ctime.pass.cpp
    A libcxx/test/std/language.support/support.runtime/ctime.timespec.compile.pass.cpp
    R libcxx/test/std/utilities/time/date.time/ctime.pass.cpp

  Log Message:
  -----------
  [libc++] Split off tests for aligned_alloc & friends into separate test files

This allows testing the rest of those headers on most platforms, instead
of XFAILing the whole test just because of a few functions.

As a fly-by fix, remove std/utilities/time/date.time/ctime.pass.cpp,
which was a duplicate of std/language.support/support.runtime/ctime.pass.cpp.

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

(cherry picked from commit ec574f5da463d303a3771597c233e52d2429db67)


  Commit: 15b8be0b832a2c6d2f47adbd30c19032c93570df
      https://github.com/llvm/llvm-project/commit/15b8be0b832a2c6d2f47adbd30c19032c93570df
  Author: Louis Dionne <ldionne.2 at gmail.com>
  Date:   2021-08-18 (Wed, 18 Aug 2021)

  Changed paths:
    M libcxx/include/__config
    M libcxx/include/ctime

  Log Message:
  -----------
  [libc++] Skip logic for detecting C11 features when using_if_exists is supported

In the future, we'll want to rely exclusively on using_if_exists for this
job, but for now, only rely on it when the compiler supports that attribute.
That removes the possibility for getting the logic wrong.

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

(cherry picked from commit ebc01bbc7a6758743e6383af34619ef1423afa15)


Compare: https://github.com/llvm/llvm-project/compare/0c25e0174861...15b8be0b832a


More information about the All-commits mailing list