[all-commits] [llvm/llvm-project] a506a6: [libc++] Fix several debug mode tests

Louis Dionne via All-commits all-commits at lists.llvm.org
Mon Oct 5 13:15:56 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: a506a66bd90cb15885833012fb2c2b7873bff541
      https://github.com/llvm/llvm-project/commit/a506a66bd90cb15885833012fb2c2b7873bff541
  Author: Louis Dionne <ldionne at apple.com>
  Date:   2020-10-05 (Mon, 05 Oct 2020)

  Changed paths:
    M libcxx/test/libcxx/containers/sequences/vector/db_back.pass.cpp
    M libcxx/test/libcxx/containers/sequences/vector/db_cback.pass.cpp
    M libcxx/test/libcxx/containers/sequences/vector/db_cfront.pass.cpp
    M libcxx/test/libcxx/containers/sequences/vector/db_cindex.pass.cpp
    M libcxx/test/libcxx/containers/sequences/vector/db_front.pass.cpp
    M libcxx/test/libcxx/containers/sequences/vector/db_index.pass.cpp
    M libcxx/test/libcxx/containers/sequences/vector/db_iterators_2.pass.cpp
    M libcxx/test/libcxx/containers/sequences/vector/db_iterators_3.pass.cpp
    M libcxx/test/libcxx/containers/sequences/vector/db_iterators_4.pass.cpp
    M libcxx/test/libcxx/containers/sequences/vector/db_iterators_5.pass.cpp
    M libcxx/test/libcxx/containers/sequences/vector/db_iterators_6.pass.cpp
    M libcxx/test/libcxx/containers/sequences/vector/db_iterators_7.pass.cpp
    M libcxx/test/libcxx/containers/sequences/vector/db_iterators_8.pass.cpp
    M libcxx/test/libcxx/containers/sequences/vector/pop_back_empty.pass.cpp
    A libcxx/test/libcxx/containers/unord/unord.map/db_bucket.pass.cpp
    A libcxx/test/libcxx/containers/unord/unord.map/db_insert_hint_const_lvalue.pass.cpp
    A libcxx/test/libcxx/containers/unord/unord.map/db_insert_hint_rvalue.pass.cpp
    M libcxx/test/libcxx/containers/unord/unord.map/db_iterators_7.pass.cpp
    M libcxx/test/libcxx/containers/unord/unord.map/db_iterators_8.pass.cpp
    M libcxx/test/libcxx/containers/unord/unord.map/db_local_iterators_7.pass.cpp
    M libcxx/test/libcxx/containers/unord/unord.map/db_local_iterators_8.pass.cpp
    A libcxx/test/libcxx/containers/unord/unord.map/db_move.pass.cpp
    A libcxx/test/libcxx/containers/unord/unord.map/unord.map.modifiers/erase_iter_db1.pass.cpp
    A libcxx/test/libcxx/containers/unord/unord.map/unord.map.modifiers/erase_iter_db2.pass.cpp
    A libcxx/test/libcxx/containers/unord/unord.map/unord.map.modifiers/erase_iter_iter_db1.pass.cpp
    A libcxx/test/libcxx/containers/unord/unord.map/unord.map.modifiers/erase_iter_iter_db2.pass.cpp
    A libcxx/test/libcxx/containers/unord/unord.map/unord.map.modifiers/erase_iter_iter_db3.pass.cpp
    A libcxx/test/libcxx/containers/unord/unord.map/unord.map.modifiers/erase_iter_iter_db4.pass.cpp
    A libcxx/test/libcxx/containers/unord/unord.map/unord.map.swap/db_swap_1.pass.cpp
    A libcxx/test/libcxx/containers/unord/unord.multimap/db_insert_hint_const_lvalue.pass.cpp
    A libcxx/test/libcxx/containers/unord/unord.multimap/db_insert_hint_rvalue.pass.cpp
    A libcxx/test/libcxx/containers/unord/unord.multimap/db_iterators_7.pass.cpp
    A libcxx/test/libcxx/containers/unord/unord.multimap/db_iterators_8.pass.cpp
    A libcxx/test/libcxx/containers/unord/unord.multimap/db_local_iterators_7.pass.cpp
    A libcxx/test/libcxx/containers/unord/unord.multimap/db_local_iterators_8.pass.cpp
    A libcxx/test/libcxx/containers/unord/unord.multimap/db_move.pass.cpp
    A libcxx/test/libcxx/containers/unord/unord.multimap/unord.multimap.modifiers/erase_iter_db1.pass.cpp
    A libcxx/test/libcxx/containers/unord/unord.multimap/unord.multimap.modifiers/erase_iter_db2.pass.cpp
    A libcxx/test/libcxx/containers/unord/unord.multimap/unord.multimap.modifiers/erase_iter_iter_db1.pass.cpp
    A libcxx/test/libcxx/containers/unord/unord.multimap/unord.multimap.modifiers/erase_iter_iter_db2.pass.cpp
    A libcxx/test/libcxx/containers/unord/unord.multimap/unord.multimap.modifiers/erase_iter_iter_db3.pass.cpp
    A libcxx/test/libcxx/containers/unord/unord.multimap/unord.multimap.modifiers/erase_iter_iter_db4.pass.cpp
    A libcxx/test/libcxx/containers/unord/unord.multimap/unord.multimap.swap/db_swap_1.pass.cpp
    A libcxx/test/libcxx/containers/unord/unord.multiset/db_insert_hint_const_lvalue.pass.cpp
    A libcxx/test/libcxx/containers/unord/unord.multiset/db_iterators_7.pass.cpp
    A libcxx/test/libcxx/containers/unord/unord.multiset/db_iterators_8.pass.cpp
    A libcxx/test/libcxx/containers/unord/unord.multiset/db_local_iterators_7.pass.cpp
    A libcxx/test/libcxx/containers/unord/unord.multiset/db_local_iterators_8.pass.cpp
    A libcxx/test/libcxx/containers/unord/unord.multiset/db_move.pass.cpp
    A libcxx/test/libcxx/containers/unord/unord.multiset/erase_iter_db1.pass.cpp
    A libcxx/test/libcxx/containers/unord/unord.multiset/erase_iter_db2.pass.cpp
    A libcxx/test/libcxx/containers/unord/unord.multiset/erase_iter_iter_db1.pass.cpp
    A libcxx/test/libcxx/containers/unord/unord.multiset/erase_iter_iter_db2.pass.cpp
    A libcxx/test/libcxx/containers/unord/unord.multiset/erase_iter_iter_db3.pass.cpp
    A libcxx/test/libcxx/containers/unord/unord.multiset/erase_iter_iter_db4.pass.cpp
    A libcxx/test/libcxx/containers/unord/unord.multiset/unord.multiset.swap/db_swap_1.pass.cpp
    A libcxx/test/libcxx/containers/unord/unord.set/db_insert_hint_const_lvalue.pass.cpp
    A libcxx/test/libcxx/containers/unord/unord.set/db_iterators_7.pass.cpp
    A libcxx/test/libcxx/containers/unord/unord.set/db_iterators_8.pass.cpp
    A libcxx/test/libcxx/containers/unord/unord.set/db_local_iterators_7.pass.cpp
    A libcxx/test/libcxx/containers/unord/unord.set/db_local_iterators_8.pass.cpp
    A libcxx/test/libcxx/containers/unord/unord.set/db_move.pass.cpp
    A libcxx/test/libcxx/containers/unord/unord.set/erase_iter_db1.pass.cpp
    A libcxx/test/libcxx/containers/unord/unord.set/erase_iter_db2.pass.cpp
    A libcxx/test/libcxx/containers/unord/unord.set/erase_iter_iter_db1.pass.cpp
    A libcxx/test/libcxx/containers/unord/unord.set/erase_iter_iter_db2.pass.cpp
    A libcxx/test/libcxx/containers/unord/unord.set/erase_iter_iter_db3.pass.cpp
    A libcxx/test/libcxx/containers/unord/unord.set/erase_iter_iter_db4.pass.cpp
    A libcxx/test/libcxx/containers/unord/unord.set/unord.set.swap/db_swap_1.pass.cpp
    A libcxx/test/libcxx/strings/basic.string/string.access/db_back.pass.cpp
    A libcxx/test/libcxx/strings/basic.string/string.access/db_cback.pass.cpp
    A libcxx/test/libcxx/strings/basic.string/string.access/db_cfront.pass.cpp
    A libcxx/test/libcxx/strings/basic.string/string.access/db_cindex.pass.cpp
    A libcxx/test/libcxx/strings/basic.string/string.access/db_front.pass.cpp
    A libcxx/test/libcxx/strings/basic.string/string.access/db_index.pass.cpp
    A libcxx/test/libcxx/strings/basic.string/string.iterators/db_iterators_2.pass.cpp
    A libcxx/test/libcxx/strings/basic.string/string.iterators/db_iterators_3.pass.cpp
    A libcxx/test/libcxx/strings/basic.string/string.iterators/db_iterators_4.pass.cpp
    A libcxx/test/libcxx/strings/basic.string/string.iterators/db_iterators_5.pass.cpp
    A libcxx/test/libcxx/strings/basic.string/string.iterators/db_iterators_6.pass.cpp
    A libcxx/test/libcxx/strings/basic.string/string.iterators/db_iterators_7.pass.cpp
    A libcxx/test/libcxx/strings/basic.string/string.iterators/db_iterators_8.pass.cpp
    M libcxx/test/libcxx/strings/basic.string/string.modifiers/clear_and_shrink_db1.pass.cpp
    M libcxx/test/libcxx/strings/basic.string/string.modifiers/erase_iter_db1.pass.cpp
    M libcxx/test/libcxx/strings/basic.string/string.modifiers/erase_iter_db2.pass.cpp
    M libcxx/test/libcxx/strings/basic.string/string.modifiers/erase_iter_iter_db1.pass.cpp
    M libcxx/test/libcxx/strings/basic.string/string.modifiers/erase_iter_iter_db2.pass.cpp
    M libcxx/test/libcxx/strings/basic.string/string.modifiers/erase_iter_iter_db3.pass.cpp
    M libcxx/test/libcxx/strings/basic.string/string.modifiers/erase_iter_iter_db4.pass.cpp
    M libcxx/test/libcxx/strings/basic.string/string.modifiers/erase_pop_back_db1.pass.cpp
    M libcxx/test/libcxx/strings/basic.string/string.modifiers/insert_iter_char_db1.pass.cpp
    A libcxx/test/libcxx/strings/basic.string/string.modifiers/insert_iter_iter_iter_db1.pass.cpp
    M libcxx/test/libcxx/strings/basic.string/string.modifiers/insert_iter_size_char_db1.pass.cpp
    M libcxx/test/std/containers/unord/unord.map/bucket.pass.cpp
    M libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/move.pass.cpp
    R libcxx/test/std/containers/unord/unord.map/unord.map.modifiers/erase_iter_db1.pass.cpp
    R libcxx/test/std/containers/unord/unord.map/unord.map.modifiers/erase_iter_db2.pass.cpp
    R libcxx/test/std/containers/unord/unord.map/unord.map.modifiers/erase_iter_iter_db1.pass.cpp
    R libcxx/test/std/containers/unord/unord.map/unord.map.modifiers/erase_iter_iter_db2.pass.cpp
    R libcxx/test/std/containers/unord/unord.map/unord.map.modifiers/erase_iter_iter_db3.pass.cpp
    R libcxx/test/std/containers/unord/unord.map/unord.map.modifiers/erase_iter_iter_db4.pass.cpp
    M libcxx/test/std/containers/unord/unord.map/unord.map.modifiers/insert_hint_const_lvalue.pass.cpp
    M libcxx/test/std/containers/unord/unord.map/unord.map.modifiers/insert_hint_rvalue.pass.cpp
    R libcxx/test/std/containers/unord/unord.map/unord.map.swap/db_swap_1.pass.cpp
    R libcxx/test/std/containers/unord/unord.multimap/db_iterators_7.pass.cpp
    R libcxx/test/std/containers/unord/unord.multimap/db_iterators_8.pass.cpp
    R libcxx/test/std/containers/unord/unord.multimap/db_local_iterators_7.pass.cpp
    R libcxx/test/std/containers/unord/unord.multimap/db_local_iterators_8.pass.cpp
    M libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/move.pass.cpp
    R libcxx/test/std/containers/unord/unord.multimap/unord.multimap.modifiers/erase_iter_db1.pass.cpp
    R libcxx/test/std/containers/unord/unord.multimap/unord.multimap.modifiers/erase_iter_db2.pass.cpp
    R libcxx/test/std/containers/unord/unord.multimap/unord.multimap.modifiers/erase_iter_iter_db1.pass.cpp
    R libcxx/test/std/containers/unord/unord.multimap/unord.multimap.modifiers/erase_iter_iter_db2.pass.cpp
    R libcxx/test/std/containers/unord/unord.multimap/unord.multimap.modifiers/erase_iter_iter_db3.pass.cpp
    R libcxx/test/std/containers/unord/unord.multimap/unord.multimap.modifiers/erase_iter_iter_db4.pass.cpp
    M libcxx/test/std/containers/unord/unord.multimap/unord.multimap.modifiers/insert_hint_const_lvalue.pass.cpp
    M libcxx/test/std/containers/unord/unord.multimap/unord.multimap.modifiers/insert_hint_rvalue.pass.cpp
    R libcxx/test/std/containers/unord/unord.multimap/unord.multimap.swap/db_swap_1.pass.cpp
    R libcxx/test/std/containers/unord/unord.multiset/db_iterators_7.pass.cpp
    R libcxx/test/std/containers/unord/unord.multiset/db_iterators_8.pass.cpp
    R libcxx/test/std/containers/unord/unord.multiset/db_local_iterators_7.pass.cpp
    R libcxx/test/std/containers/unord/unord.multiset/db_local_iterators_8.pass.cpp
    R libcxx/test/std/containers/unord/unord.multiset/erase_iter_db1.pass.cpp
    R libcxx/test/std/containers/unord/unord.multiset/erase_iter_db2.pass.cpp
    R libcxx/test/std/containers/unord/unord.multiset/erase_iter_iter_db1.pass.cpp
    R libcxx/test/std/containers/unord/unord.multiset/erase_iter_iter_db2.pass.cpp
    R libcxx/test/std/containers/unord/unord.multiset/erase_iter_iter_db3.pass.cpp
    R libcxx/test/std/containers/unord/unord.multiset/erase_iter_iter_db4.pass.cpp
    M libcxx/test/std/containers/unord/unord.multiset/insert_hint_const_lvalue.pass.cpp
    M libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/move.pass.cpp
    R libcxx/test/std/containers/unord/unord.multiset/unord.multiset.swap/db_swap_1.pass.cpp
    R libcxx/test/std/containers/unord/unord.set/db_iterators_7.pass.cpp
    R libcxx/test/std/containers/unord/unord.set/db_iterators_8.pass.cpp
    R libcxx/test/std/containers/unord/unord.set/db_local_iterators_7.pass.cpp
    R libcxx/test/std/containers/unord/unord.set/db_local_iterators_8.pass.cpp
    R libcxx/test/std/containers/unord/unord.set/erase_iter_db1.pass.cpp
    R libcxx/test/std/containers/unord/unord.set/erase_iter_db2.pass.cpp
    R libcxx/test/std/containers/unord/unord.set/erase_iter_iter_db1.pass.cpp
    R libcxx/test/std/containers/unord/unord.set/erase_iter_iter_db2.pass.cpp
    R libcxx/test/std/containers/unord/unord.set/erase_iter_iter_db3.pass.cpp
    R libcxx/test/std/containers/unord/unord.set/erase_iter_iter_db4.pass.cpp
    M libcxx/test/std/containers/unord/unord.set/insert_hint_const_lvalue.pass.cpp
    M libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/move.pass.cpp
    R libcxx/test/std/containers/unord/unord.set/unord.set.swap/db_swap_1.pass.cpp
    R libcxx/test/std/strings/basic.string/string.access/db_back.pass.cpp
    R libcxx/test/std/strings/basic.string/string.access/db_cback.pass.cpp
    R libcxx/test/std/strings/basic.string/string.access/db_cfront.pass.cpp
    R libcxx/test/std/strings/basic.string/string.access/db_cindex.pass.cpp
    R libcxx/test/std/strings/basic.string/string.access/db_front.pass.cpp
    R libcxx/test/std/strings/basic.string/string.access/db_index.pass.cpp
    R libcxx/test/std/strings/basic.string/string.iterators/db_iterators_2.pass.cpp
    R libcxx/test/std/strings/basic.string/string.iterators/db_iterators_3.pass.cpp
    R libcxx/test/std/strings/basic.string/string.iterators/db_iterators_4.pass.cpp
    R libcxx/test/std/strings/basic.string/string.iterators/db_iterators_5.pass.cpp
    R libcxx/test/std/strings/basic.string/string.iterators/db_iterators_6.pass.cpp
    R libcxx/test/std/strings/basic.string/string.iterators/db_iterators_7.pass.cpp
    R libcxx/test/std/strings/basic.string/string.iterators/db_iterators_8.pass.cpp
    M libcxx/test/std/strings/basic.string/string.modifiers/string_insert/iter_iter_iter.pass.cpp

  Log Message:
  -----------
  [libc++] Fix several debug mode tests

These tests were only being run when _LIBCPP_DEBUG was defined, which
isn't the case by default when we run the test suite. In other words,
all these debug mode tests were never being run. This commit makes sure
they are run, and in some cases, extracts them into a file under test/libcxx
to separate them from the Standard tests.

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




More information about the All-commits mailing list