Skip to content

Commit 59c732d

Browse files
resolve fail in mark
1 parent a1a3ee8 commit 59c732d

File tree

2 files changed

+4
-34
lines changed

2 files changed

+4
-34
lines changed

code/tests/cases/test_mark.c

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -43,21 +43,8 @@ FOSSIL_TEARDOWN(c_mark_suite) {
4343
// as samples for library usage.
4444
// * * * * * * * * * * * * * * * * * * * * * * * *
4545

46-
// A test case to check if the benchmark initialization works correctly
47-
FOSSIL_TEST_CASE(c_mark_initialization) {
48-
MARK_BENCHMARK(init_test);
49-
FOSSIL_TEST_ASSUME(benchmark_init_test.name != NULL, "Benchmark initialization failed");
50-
}
51-
52-
// A test case to check if the benchmark start works correctly
53-
FOSSIL_TEST_CASE(c_mark_start) {
54-
MARK_BENCHMARK(start_test);
55-
MARK_START(start_test);
56-
FOSSIL_TEST_ASSUME(benchmark_start_test.start_time != 0, "Benchmark start failed");
57-
}
58-
5946
// A test case to check if the benchmark stop works correctly
60-
FOSSIL_TEST_CASE(c_mark_stop) {
47+
FOSSIL_TEST_CASE(c_mark_start_and_stop) {
6148
MARK_BENCHMARK(stop_test);
6249
MARK_START(stop_test);
6350
MARK_STOP(stop_test);
@@ -68,9 +55,7 @@ FOSSIL_TEST_CASE(c_mark_stop) {
6855
// * Fossil Logic Test Pool
6956
// * * * * * * * * * * * * * * * * * * * * * * * *
7057
FOSSIL_TEST_GROUP(c_mark_test_cases) {
71-
FOSSIL_TEST_ADD(c_mark_suite, c_mark_initialization);
72-
FOSSIL_TEST_ADD(c_mark_suite, c_mark_start);
73-
FOSSIL_TEST_ADD(c_mark_suite, c_mark_stop);
58+
FOSSIL_TEST_ADD(c_mark_suite, c_mark_start_and_stop);
7459

7560
FOSSIL_TEST_REGISTER(c_mark_suite);
7661
}

code/tests/cases/test_mark.cpp

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -43,21 +43,8 @@ FOSSIL_TEARDOWN(cpp_mark_suite) {
4343
// as samples for library usage.
4444
// * * * * * * * * * * * * * * * * * * * * * * * *
4545

46-
// A test case to check if the benchmark initialization works correctly
47-
FOSSIL_TEST_CASE(cpp_mark_initialization) {
48-
MARK_BENCHMARK(init_test);
49-
FOSSIL_TEST_ASSUME(benchmark_init_test.name != NULL, "Benchmark initialization failed");
50-
}
51-
52-
// A test case to check if the benchmark start works correctly
53-
FOSSIL_TEST_CASE(cpp_mark_start) {
54-
MARK_BENCHMARK(start_test);
55-
MARK_START(start_test);
56-
FOSSIL_TEST_ASSUME(benchmark_start_test.start_time != 0, "Benchmark start failed");
57-
}
58-
5946
// A test case to check if the benchmark stop works correctly
60-
FOSSIL_TEST_CASE(cpp_mark_stop) {
47+
FOSSIL_TEST_CASE(cpp_mark_start_and_stop) {
6148
MARK_BENCHMARK(stop_test);
6249
MARK_START(stop_test);
6350
MARK_STOP(stop_test);
@@ -68,9 +55,7 @@ FOSSIL_TEST_CASE(cpp_mark_stop) {
6855
// * Fossil Logic Test Pool
6956
// * * * * * * * * * * * * * * * * * * * * * * * *
7057
FOSSIL_TEST_GROUP(cpp_mark_test_cases) {
71-
FOSSIL_TEST_ADD(cpp_mark_suite, cpp_mark_initialization);
72-
FOSSIL_TEST_ADD(cpp_mark_suite, cpp_mark_start);
73-
FOSSIL_TEST_ADD(cpp_mark_suite, cpp_mark_stop);
58+
FOSSIL_TEST_ADD(cpp_mark_suite, cpp_mark_start_and_stop);
7459

7560
FOSSIL_TEST_REGISTER(cpp_mark_suite);
7661
}

0 commit comments

Comments
 (0)