Signed-off-by: Adam Kupczyk <akupczyk@ibm.com>
return cct;
}
+void say_good_bye() {
+ std::cout << "good bye" << std::endl;
+}
+
int main(int _argc, char **_argv) {
argc = _argc;
argv = _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();
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();