Skip to content

Commit d1052dd

Browse files
committed
We actually don't need threading right here
1 parent 46edc9f commit d1052dd

File tree

5 files changed

+6
-55
lines changed

5 files changed

+6
-55
lines changed

gui/qt/CEmu.pro

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ if (0) { # GitHub release/deployment build. Has to correspond to the git tag.
55
DEFINES += CEMU_VERSION=\\\"1.0\\\"
66
} else { # Development build. Used in the about screen
77
GIT_VERSION = $$system(git describe --abbrev=7 --dirty --always --tags)
8-
DEFINES += CEMU_VERSION=\\\"0.4dev_$$GIT_VERSION\\\"
8+
DEFINES += CEMU_VERSION=\\\"0.5dev_$$GIT_VERSION\\\"
99
}
1010

1111
# Code beautifying
@@ -85,7 +85,6 @@ SOURCES += utils.cpp \
8585
tivarslib/utils_tivarslib.cpp \
8686
tivarslib/TypeHandlers/TH_0x00.cpp \
8787
tivarslib/TypeHandlers/TH_0x05.cpp \
88-
autotesterthread.cpp \
8988
../../tests/autotester/autotester.cpp \
9089
../../core/asic.c \
9190
../../core/cpu.c \
@@ -142,7 +141,6 @@ HEADERS += utils.h \
142141
tivarslib/TypeHandlers/TH_0x04.h \
143142
tivarslib/TypeHandlers/TH_0x05.h \
144143
tivarslib/TypeHandlers/TH_0x06.h \
145-
autotesterthread.h \
146144
../../tests/autotester/autotester.h \
147145
../../core/asic.h \
148146
../../core/cpu.h \

gui/qt/autotesterthread.cpp

Lines changed: 0 additions & 26 deletions
This file was deleted.

gui/qt/autotesterthread.h

Lines changed: 0 additions & 21 deletions
This file was deleted.

gui/qt/mainwindow.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
#include "../../core/os/os.h"
4949

5050
#include "../../tests/autotester/autotester.h"
51-
#include "autotesterthread.h"
5251

5352

5453
static const constexpr int WindowStateVersion = 0;
@@ -130,7 +129,6 @@ MainWindow::MainWindow(QWidget *p) : QMainWindow(p), ui(new Ui::MainWindow) {
130129
connect(ui->buttonReceiveFiles, &QPushButton::clicked, this, &MainWindow::saveSelected);
131130

132131
// Autotester
133-
connect(&tester, &AutotesterThread::testError, this, &MainWindow::dispAutotesterError, Qt::QueuedConnection);
134132
connect(ui->buttonOpenJSONconfig, &QPushButton::clicked, this, &MainWindow::prepareAndOpenJSONConfig);
135133
connect(ui->buttonReloadJSONconfig, &QPushButton::clicked, this, &MainWindow::reloadJSONConfig);
136134
connect(ui->buttonLaunchTest, &QPushButton::clicked, this, &MainWindow::launchTest);
@@ -1169,7 +1167,11 @@ void MainWindow::launchTest() {
11691167
sendFiles(filesList);
11701168
QThread::msleep(200);
11711169

1172-
autotester_thread->launchActualTest();
1170+
// Follow the sequence
1171+
if (!autotester::doTestSequence()) {
1172+
dispAutotesterError(1);
1173+
return;
1174+
}
11731175
}
11741176

11751177
/* ================================================ */

gui/qt/mainwindow.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
#include "lcdwidget.h"
1313
#include "romselection.h"
1414
#include "emuthread.h"
15-
#include "autotesterthread.h"
1615
#include "../../core/vat.h"
1716
#include "../../core/debug/debug.h"
1817
#include "../../core/debug/disasm.h"
@@ -227,7 +226,6 @@ public slots:
227226
QDir currentDir;
228227
QString currentEquateFile;
229228
EmuThread emu;
230-
AutotesterThread tester;
231229

232230
bool debuggerOn = false;
233231
bool inReceivingMode = false;

0 commit comments

Comments
 (0)