Skip to content

Commit 8a6a797

Browse files
update cases to check if this can be called
1 parent e10091d commit 8a6a797

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

code/tests/cases/test_mark.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
// * * * * * * * * * * * * * * * * * * * * * * * *

code/tests/cases/test_mark.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
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
4748
FOSSIL_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
// * * * * * * * * * * * * * * * * * * * * * * * *

0 commit comments

Comments
 (0)