]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
more debug code
authorAdam Kupczyk <akupczyk@ibm.com>
Mon, 3 Mar 2025 17:51:10 +0000 (17:51 +0000)
committerAdam Kupczyk <akupczyk@ibm.com>
Mon, 3 Mar 2025 17:51:10 +0000 (17:51 +0000)
Signed-off-by: Adam Kupczyk <akupczyk@ibm.com>
src/test/objectstore/test_deferred.cc

index 9e474df181c937c450fb815b9c738b24c0f7882c..45d15ab37fbcb7d0deda8e6893c4b1398ac7a770 100644 (file)
@@ -311,6 +311,10 @@ boost::intrusive_ptr<CephContext> setup_env() {
   return cct;
 }
 
+void say_good_bye() {
+  std::cout << "good bye" << std::endl;
+}
+
 int main(int _argc, char **_argv) {
   argc = _argc;
   argv = _argv;
@@ -318,6 +322,7 @@ int main(int _argc, char **_argv) {
   pid_t first_test = fork();
   if (first_test == 0) {
     std::cout << "1. Testing deletion of deferred (L) entries." << std::endl;
+    atexit(&say_good_bye);
     pid_t child = fork();
     if (child == 0) {
       auto cct = setup_env();
@@ -343,6 +348,7 @@ int main(int _argc, char **_argv) {
     waitpid(first_test, &first_stat, 0);
     ceph_assert(WIFEXITED(first_stat) && WEXITSTATUS(first_stat) == 0);
     std::cout << "2. Testing overwrite of space allocated by BlueFS" << std::endl;
+    atexit(&say_good_bye);
     pid_t child = fork();
     if (child == 0) {
       auto cct = setup_env();