Commit 5e68827d authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Attempt to fix threading test crash

parent 630e1cfd
Pipeline #106184 canceled with stage
......@@ -63,6 +63,7 @@ TEST_CASE("Regression")
undoStack->redo();
REQUIRE(timeline->getTrackById(1)->checkConsistency());
binModel->clean();
pCore->taskManager.slotCancelJobs();
pCore->m_projectManager = nullptr;
}
......@@ -216,6 +217,7 @@ TEST_CASE("Regression2")
REQUIRE(timeline->getTrackById(6)->checkConsistency());
undoStack->redo();
binModel->clean();
pCore->taskManager.slotCancelJobs();
pCore->m_projectManager = nullptr;
}
......@@ -552,8 +554,9 @@ TEST_CASE("FuzzBug1")
REQUIRE(timeline_0->checkConsistency());
undoStack->redo();
REQUIRE(timeline_0->checkConsistency());
pCore->taskManager.slotCancelJobs();
pCore->m_projectManager = nullptr;
}
pCore->m_projectManager = nullptr;
}
TEST_CASE("FuzzBug2")
......@@ -635,8 +638,9 @@ TEST_CASE("FuzzBug2")
REQUIRE(timeline_0->checkConsistency());
undoStack->redo();
REQUIRE(timeline_0->checkConsistency());
pCore->taskManager.slotCancelJobs();
pCore->m_projectManager = nullptr;
}
pCore->m_projectManager = nullptr;
}
TEST_CASE("FuzzBug3")
......@@ -684,8 +688,9 @@ TEST_CASE("FuzzBug3")
REQUIRE(timeline_0->checkConsistency());
undoStack->redo();
REQUIRE(timeline_0->checkConsistency());
pCore->taskManager.slotCancelJobs();
pCore->m_projectManager = nullptr;
}
pCore->m_projectManager = nullptr;
}
TEST_CASE("FuzzBug4")
......@@ -759,8 +764,9 @@ TEST_CASE("FuzzBug4")
REQUIRE(timeline_0->checkConsistency());
undoStack->redo();
REQUIRE(timeline_0->checkConsistency());
pCore->taskManager.slotCancelJobs();
pCore->m_projectManager = nullptr;
}
pCore->m_projectManager = nullptr;
}
TEST_CASE("FuzzBug5")
......@@ -903,8 +909,9 @@ TEST_CASE("FuzzBug5")
undoStack->redo();
REQUIRE(timeline_0->checkConsistency());
REQUIRE(timeline_1->checkConsistency());
pCore->taskManager.slotCancelJobs();
pCore->m_projectManager = nullptr;
}
pCore->m_projectManager = nullptr;
}
TEST_CASE("FuzzBug6")
......@@ -971,8 +978,9 @@ TEST_CASE("FuzzBug6")
undoStack->redo();
REQUIRE(timeline_0->checkConsistency());
REQUIRE(timeline_1->checkConsistency());
pCore->taskManager.slotCancelJobs();
pCore->m_projectManager = nullptr;
}
pCore->m_projectManager = nullptr;
}
TEST_CASE("FuzzBug7")
......@@ -1089,8 +1097,9 @@ TEST_CASE("FuzzBug7")
undoStack->redo();
REQUIRE(timeline_0->checkConsistency());
REQUIRE(timeline_1->checkConsistency());
pCore->taskManager.slotCancelJobs();
pCore->m_projectManager = nullptr;
}
pCore->m_projectManager = nullptr;
}
TEST_CASE("FuzzBug8")
......@@ -1151,8 +1160,9 @@ TEST_CASE("FuzzBug8")
REQUIRE(timeline_0->checkConsistency());
undoStack->redo();
REQUIRE(timeline_0->checkConsistency());
pCore->taskManager.slotCancelJobs();
pCore->m_projectManager = nullptr;
}
pCore->m_projectManager = nullptr;
}
TEST_CASE("FuzzBug9")
......@@ -1204,8 +1214,9 @@ TEST_CASE("FuzzBug9")
REQUIRE(timeline_0->checkConsistency());
undoStack->redo();
REQUIRE(timeline_0->checkConsistency());
pCore->taskManager.slotCancelJobs();
pCore->m_projectManager = nullptr;
}
pCore->m_projectManager = nullptr;
}
TEST_CASE("FuzzBug10")
......@@ -1251,8 +1262,9 @@ TEST_CASE("FuzzBug10")
REQUIRE(timeline_0->checkConsistency());
undoStack->redo();
REQUIRE(timeline_0->checkConsistency());
pCore->taskManager.slotCancelJobs();
pCore->m_projectManager = nullptr;
}
pCore->m_projectManager = nullptr;
}
TEST_CASE("FuzzBug11")
......@@ -1343,6 +1355,7 @@ TEST_CASE("FuzzBug11")
REQUIRE(timeline_0->checkConsistency());
undoStack->undo();
REQUIRE(timeline_0->checkConsistency());
pCore->taskManager.slotCancelJobs();
pCore->m_projectManager = nullptr;
}
pCore->m_projectManager = nullptr;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment