a bug fix, reorganization and 0.5.1
Some checks failed
Main LMDBAL workfow / Archlinux (push) Failing after 38s

This commit is contained in:
Blue 2023-10-21 16:41:41 -03:00
parent 6b348023bb
commit 0079f6e96e
Signed by: blue
GPG key ID: 9B203B252A63EE38
22 changed files with 37 additions and 31 deletions

View file

@ -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})

View file

@ -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