Skip to content

Commit

Permalink
add debuger
Browse files Browse the repository at this point in the history
  • Loading branch information
osalyk committed Aug 22, 2024
1 parent 77cebb5 commit ec3947e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/tests/ras/unsafe_shutdown/local_basic_tests.cc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2018-2023, Intel Corporation
* Copyright 2018-2024, Intel Corporation
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
Expand Down Expand Up @@ -31,6 +31,8 @@
*/

#include "local_basic_tests.h"
#include <csignal>
#include <unistd.h>

void UnsafeShutdownBasic::SetUp() {
ASSERT_LE(1, test_phase_.GetUnsafeDimmNamespaces().size())
Expand Down Expand Up @@ -81,6 +83,10 @@ TEST_F(UnsafeShutdownBasic, TRY_OPEN_OBJ_phase_2) {
pmemobj_ctl_get(NULL , "sds.at_create", &sds_state);
std::cout << "SDS before open: " << sds_state << std::endl;

std::cout << "PID: " << getpid() << std::endl;

raise(SIGTRAP);

pop_ = pmemobj_open(us_dimm_pool_path_.c_str(), nullptr);
ASSERT_EQ(nullptr, pop_)
<< "Pool was opened after unsafe shutdown but should be not";
Expand Down

0 comments on commit ec3947e

Please sign in to comment.