[all-commits] [llvm/llvm-project] 550d32: [libc++][test] Add exception tests for vector capa...
Peng Liu via All-commits
all-commits at lists.llvm.org
Mon Jan 13 12:31:27 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 550d32f205202b73f21903b29df04fe2e89ae648
https://github.com/llvm/llvm-project/commit/550d32f205202b73f21903b29df04fe2e89ae648
Author: Peng Liu <winner245 at hotmail.com>
Date: 2025-01-13 (Mon, 13 Jan 2025)
Changed paths:
M libcxx/test/std/containers/sequences/vector/common.h
M libcxx/test/std/containers/sequences/vector/vector.capacity/reserve.pass.cpp
A libcxx/test/std/containers/sequences/vector/vector.capacity/reserve_exceptions.pass.cpp
A libcxx/test/std/containers/sequences/vector/vector.capacity/resize_size_exceptions.pass.cpp
A libcxx/test/std/containers/sequences/vector/vector.capacity/resize_size_value_exceptions.pass.cpp
A libcxx/test/std/containers/sequences/vector/vector.capacity/shrink_to_fit_exceptions.pass.cpp
Log Message:
-----------
[libc++][test] Add exception tests for vector capacity operations (#118141)
As a follow-up to #117662, this PR provides a comprehensive set of
exception tests for the following capacity-related functions in
`std::vector`. Specifically, it includes tests for the following
functions:
- `reserve(size_type)`
- `resize(size_type)` and `resize(size_type, const_reference)`
- `shrink_to_fit()`
Previously, the exception safety tests for these functions were either
missing or inadequate. We need a thorough coverage of exception tests to
validate that these operations provide strong exception guarantees under
various exceptional scenarios.
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