a bug fix, reorganization and 0.5.1
Some checks failed
Main LMDBAL workfow / Archlinux (push) Failing after 38s
Some checks failed
Main LMDBAL workfow / Archlinux (push) Failing after 38s
This commit is contained in:
parent
6b348023bb
commit
0079f6e96e
22 changed files with 37 additions and 31 deletions
|
@ -12,7 +12,7 @@ add_executable(runUnitTests
|
|||
duplicates.cpp
|
||||
)
|
||||
|
||||
target_compile_options(runUnitTests PRIVATE -fPIC)
|
||||
target_compile_options(runUnitTests PRIVATE -fPIC -Wall -Wextra -O0)
|
||||
|
||||
target_include_directories(runUnitTests PRIVATE ${CMAKE_SOURCE_DIR}/src)
|
||||
target_include_directories(runUnitTests PRIVATE ${Qt${QT_VERSION_MAJOR}_INCLUDE_DIRS})
|
||||
|
|
|
@ -181,6 +181,7 @@ TEST_F(StorageTransactionsTest, ConcurentModification) {
|
|||
|
||||
int pid = fork();
|
||||
if (pid == 0) { // I am the child
|
||||
usleep(1);
|
||||
std::cout << "beggining second transaction" << std::endl;
|
||||
LMDBAL::WriteTransaction txn2 = db->beginTransaction(); //<--- this is where the execution should pause
|
||||
//and wait for the first transaction to get finished
|
||||
|
@ -233,6 +234,7 @@ TEST_F(StorageTransactionsTest, RAIIResourceFree) {
|
|||
|
||||
int pid = fork();
|
||||
if (pid == 0) { // I am the child
|
||||
usleep(1);
|
||||
std::cout << "beggining child transaction" << std::endl;
|
||||
LMDBAL::WriteTransaction txn2 = db->beginTransaction(); //<--- this is where the execution should pause
|
||||
//and wait for the first transaction to get finished
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue