Skip to content

Commit e1e8406

Browse files
committed
more debug code
Signed-off-by: Adam Kupczyk <[email protected]>
1 parent fff7139 commit e1e8406

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/test/objectstore/test_deferred.cc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
314318
int 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();

0 commit comments

Comments
 (0)