File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -311,13 +311,18 @@ boost::intrusive_ptr<CephContext> setup_env() {
311311 return cct;
312312}
313313
314+ void say_good_bye () {
315+ std::cout << " good bye" << std::endl;
316+ }
317+
314318int main (int _argc, char **_argv) {
315319 argc = _argc;
316320 argv = _argv;
317321
318322 pid_t first_test = fork ();
319323 if (first_test == 0 ) {
320324 std::cout << " 1. Testing deletion of deferred (L) entries." << std::endl;
325+ atexit (&say_good_bye);
321326 pid_t child = fork ();
322327 if (child == 0 ) {
323328 auto cct = setup_env ();
@@ -343,6 +348,7 @@ int main(int _argc, char **_argv) {
343348 waitpid (first_test, &first_stat, 0 );
344349 ceph_assert (WIFEXITED (first_stat) && WEXITSTATUS (first_stat) == 0 );
345350 std::cout << " 2. Testing overwrite of space allocated by BlueFS" << std::endl;
351+ atexit (&say_good_bye);
346352 pid_t child = fork ();
347353 if (child == 0 ) {
348354 auto cct = setup_env ();
You can’t perform that action at this time.
0 commit comments