https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116586
--- Comment #12 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jonathan Wakely <[email protected]>: https://gcc.gnu.org/g:6e9ab669b584496dd628700d0d69bd20c5c12ca7 commit r16-4432-g6e9ab669b584496dd628700d0d69bd20c5c12ca7 Author: Mike Crowe <[email protected]> Date: Sun Sep 21 17:15:52 2025 +0100 libstdc++: Add negative this_thread::sleep tests [PR116586] Add tests to ensure that std::this_thread::sleep_for() and std::this_thread::sleep_until() cope with being passed negative times correctly. These tests prove that the functions don't suffer from libstdc++/PR116586, and will stay that way. libstdc++-v3/ChangeLog: PR libstdc++/116586 * testsuite/30_threads/this_thread/sleep_for.cc: Add test_negative() test. * testsuite/30_threads/this_thread/sleep_until.cc: Make existing test use both system_clock and steady_clock. Add test_negative() test. Signed-off-by: Mike Crowe <[email protected]>
