File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ FOSSIL_TEST_CASE(c_mark_start_and_stop) {
4848 MARK_BENCHMARK (stop_test );
4949 MARK_START (stop_test );
5050 MARK_STOP (stop_test );
51- FOSSIL_TEST_ASSUME (benchmark_stop_test .end_time != 0 , "Benchmark stop failed " );
51+ ASSUME_ITS_EQUAL_CSTR (benchmark_stop_test .name , "stop_test " );
5252}
5353
5454// * * * * * * * * * * * * * * * * * * * * * * * *
Original file line number Diff line number Diff line change 1414 */
1515
1616#include " fossil/test/framework.h"
17+ #include < string>
1718
1819// * * * * * * * * * * * * * * * * * * * * * * * *
1920// * Fossil Logic Test Utilites
@@ -45,10 +46,11 @@ FOSSIL_TEARDOWN(cpp_mark_suite) {
4546
4647// A test case to check if the benchmark stop works correctly
4748FOSSIL_TEST_CASE (cpp_mark_start_and_stop) {
49+ std::string benchmark_stop_test_name = " stop_test" ;
4850 MARK_BENCHMARK (stop_test);
4951 MARK_START (stop_test);
5052 MARK_STOP (stop_test);
51- FOSSIL_TEST_ASSUME (benchmark_stop_test.end_time != 0 , " Benchmark stop failed " );
53+ ASSUME_ITS_EQUAL_CSTR (benchmark_stop_test.name , benchmark_stop_test_name. c_str () );
5254}
5355
5456// * * * * * * * * * * * * * * * * * * * * * * * *
You can’t perform that action at this time.
0 commit comments