[all-commits] [llvm/llvm-project] 37797d: [libc++][test] Fix and refactor exception tests fo...
Peng Liu via All-commits
all-commits at lists.llvm.org
Fri Dec 6 06:03:39 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 37797d3e802f9e740b05556cdaa3bb1f6cdef5e0
https://github.com/llvm/llvm-project/commit/37797d3e802f9e740b05556cdaa3bb1f6cdef5e0
Author: Peng Liu <winner245 at hotmail.com>
Date: 2024-12-06 (Fri, 06 Dec 2024)
Changed paths:
M libcxx/test/std/containers/sequences/vector/common.h
M libcxx/test/std/containers/sequences/vector/vector.cons/exceptions.pass.cpp
Log Message:
-----------
[libc++][test] Fix and refactor exception tests for std::vector constructors (#117662)
The existing exceptions tests for `vector<T>` have several issues: some
tests did not throw exceptions at all, making them not useful for
exception-safety testing, and some tests did not throw exceptions at the
intended points, failing to serve their expected purpose. This PR fixes
those tests for vector's constructors. Morever, this PR extracted common
classes and utilities into a separate header file, and renamed those
classes using more descriptive names.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list