Debian Codegraph @

src/external/catch2/tests/SelfTest/TimingTests/Sleep.tests.cpp

raw
1
2 // Copyright Catch2 Authors
3 // Distributed under the Boost Software License, Version 1.0.
4 // (See accompanying file LICENSE.txt or copy at
5 // https://www.boost.org/LICENSE_1_0.txt)
6
7 // SPDX-License-Identifier: BSL-1.0
8
9 #include <catch2/catch_test_macros.hpp>
10
11 #include <chrono>
12 #include <thread>
13
14 TEST_CASE( "sleep_for_100ms", "[.min_duration_test][approvals]" )
15 {
16 std::this_thread::sleep_for( std::chrono::milliseconds( 100 ) );
17 CHECK( true );
18 }
19
20 TEST_CASE( "sleep_for_1000ms", "[.min_duration_test][approvals]" )
21 {
22 std::this_thread::sleep_for( std::chrono::milliseconds( 1'000 ) );
23 CHECK( true );
24 }