Skip to content

Commit

Permalink
test: export: terminate writing properly
Browse files Browse the repository at this point in the history
Call test_common_write_term() also when exiting and writing is
successful.

Signed-off-by: Ray Sointula <[email protected]>
Reviewed-by: Matias Elo <[email protected]>
  • Loading branch information
Rayska authored and MatiasElo committed Oct 21, 2024
1 parent 2995872 commit b4de7da
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/performance/odp_atomic_perf.c
Original file line number Diff line number Diff line change
Expand Up @@ -1139,6 +1139,9 @@ static int output_summary(test_global_t *global)
}
}

if (global->common_options.is_export)
test_common_write_term();

return 0;
}

Expand Down
4 changes: 4 additions & 0 deletions test/performance/odp_lock_perf.c
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,10 @@ static int output_summary(test_global_t *global)
}
}
}

if (global->common_options.is_export)
test_common_write_term();

return 0;
}

Expand Down
2 changes: 2 additions & 0 deletions test/performance/odp_pool_perf.c
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,8 @@ static int output_results(test_global_t *global)
test_common_write_term();
return -1;
}

test_common_write_term();
}

return 0;
Expand Down
3 changes: 3 additions & 0 deletions test/performance/odp_sched_latency.c
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,9 @@ static int output_results(test_globals_t *globals)
}
}

if (globals->common_options.is_export)
test_common_write_term();

return 0;
}

Expand Down
2 changes: 2 additions & 0 deletions test/performance/odp_sched_perf.c
Original file line number Diff line number Diff line change
Expand Up @@ -1485,6 +1485,8 @@ static int output_results(test_global_t *global)
test_common_write_term();
return -1;
}

test_common_write_term();
}

return 0;
Expand Down
2 changes: 2 additions & 0 deletions test/performance/odp_stash_perf.c
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,8 @@ static int output_results(test_global_t *global)
test_common_write_term();
return -1;
}

test_common_write_term();
}

return 0;
Expand Down
2 changes: 2 additions & 0 deletions test/performance/odp_timer_accuracy.c
Original file line number Diff line number Diff line change
Expand Up @@ -1043,6 +1043,8 @@ static int print_stat(test_global_t *test_global)
test_common_write_term();
return -1;
}

test_common_write_term();
}

return 0;
Expand Down

0 comments on commit b4de7da

Please sign in to comment.