From ec3947e97d6a16465bc3724ae8c706014bdac980 Mon Sep 17 00:00:00 2001 From: Oksana Salyk Date: Thu, 22 Aug 2024 14:34:00 +0200 Subject: [PATCH] add debuger --- src/tests/ras/unsafe_shutdown/local_basic_tests.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/tests/ras/unsafe_shutdown/local_basic_tests.cc b/src/tests/ras/unsafe_shutdown/local_basic_tests.cc index df2eb5c..9c6ddaf 100644 --- a/src/tests/ras/unsafe_shutdown/local_basic_tests.cc +++ b/src/tests/ras/unsafe_shutdown/local_basic_tests.cc @@ -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 @@ -31,6 +31,8 @@ */ #include "local_basic_tests.h" +#include +#include void UnsafeShutdownBasic::SetUp() { ASSERT_LE(1, test_phase_.GetUnsafeDimmNamespaces().size()) @@ -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";