From 66b8dcbe36a247620e2eebb1bcb29c3fc4c3bd51 Mon Sep 17 00:00:00 2001 From: Christoph Egger Date: Tue, 2 Jun 2015 23:59:42 +0200 Subject: [PATCH] Temp-fix tests We should probably wait for the disassembler to work through the binary before trying to retrieve the functions. Then however we can't really decide whether the disassembler failed to find the function or is just slow. --- src/core/InformationManager.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/InformationManager.cxx b/src/core/InformationManager.cxx index f59afa0..604425e 100644 --- a/src/core/InformationManager.cxx +++ b/src/core/InformationManager.cxx @@ -45,10 +45,14 @@ void InformationManager::reset(const std::string& filename) { disassembler.reset(createLLVMDisassembler(filename, this)); if (disassembler.get() != NULL) { emit resetEvent(); +#ifndef CONFIG_TEST disassembler.get()->moveToThread(&disassemblerThread); connect(&disassemblerThread, &QThread::started, disassembler.get(), &Disassembler::start); disassemblerThread.start(); +#else + disassembler.get()->start(); +#endif } } -- 2.39.5