diff --git a/CMake b/CMake index 72afe7f..814b6ae 160000 --- a/CMake +++ b/CMake @@ -1 +1 @@ -Subproject commit 72afe7f2e3f0062e231478f212c96a49d95dc6d1 +Subproject commit 814b6aeb4ea5b3d9985aabe88af92b37f5aed5ad diff --git a/tests/tstMain.cpp b/tests/tstMain.cpp index 9ac09a7..33efad1 100644 --- a/tests/tstMain.cpp +++ b/tests/tstMain.cpp @@ -1,3 +1,10 @@ +//# +//# Copyright (C) 2020-2021 QuasarApp. +//# Distributed under the lgplv3 software license, see the accompanying +//# Everyone is permitted to copy and distribute verbatim copies +//# of this license document, but changing it is not allowed. +//# + #include <QtTest> #include "exampletest.h" @@ -59,9 +66,9 @@ void tstMain::unitTests() { QDir(path).removeRecursively(); - QTimer::singleShot(0, [&app, this]() { + QTimer::singleShot(0, this, [&app, this]() { - for (auto test : _tests ) { + for (auto test : qAsConst(_tests) ) { test->test(); delete test; } diff --git a/tests/units/exampletest.cpp b/tests/units/exampletest.cpp index 77ab4a1..33b3816 100644 --- a/tests/units/exampletest.cpp +++ b/tests/units/exampletest.cpp @@ -1,3 +1,11 @@ +//# +//# Copyright (C) 2020-2021 QuasarApp. +//# Distributed under the lgplv3 software license, see the accompanying +//# Everyone is permitted to copy and distribute verbatim copies +//# of this license document, but changing it is not allowed. +//# + + #include "exampletest.h" diff --git a/tests/units/exampletest.h b/tests/units/exampletest.h index b3e51c8..c7a2c2d 100644 --- a/tests/units/exampletest.h +++ b/tests/units/exampletest.h @@ -1,3 +1,11 @@ +//# +//# Copyright (C) 2020-2021 QuasarApp. +//# Distributed under the lgplv3 software license, see the accompanying +//# Everyone is permitted to copy and distribute verbatim copies +//# of this license document, but changing it is not allowed. +//# + + #ifndef EXAMPLE_TEST_H #define EXAMPLE_TEST_H #include "test.h" diff --git a/tests/units/test.cpp b/tests/units/test.cpp index 33296cc..042dffc 100644 --- a/tests/units/test.cpp +++ b/tests/units/test.cpp @@ -1 +1,9 @@ +//# +//# Copyright (C) 2020-2021 QuasarApp. +//# Distributed under the lgplv3 software license, see the accompanying +//# Everyone is permitted to copy and distribute verbatim copies +//# of this license document, but changing it is not allowed. +//# + + #include "test.h" diff --git a/tests/units/test.h b/tests/units/test.h index e3d43f8..b5719ef 100644 --- a/tests/units/test.h +++ b/tests/units/test.h @@ -1,3 +1,11 @@ +//# +//# Copyright (C) 2020-2021 QuasarApp. +//# Distributed under the lgplv3 software license, see the accompanying +//# Everyone is permitted to copy and distribute verbatim copies +//# of this license document, but changing it is not allowed. +//# + + #ifndef TEST_H #define TEST_H diff --git a/tests/units/testutils.cpp b/tests/units/testutils.cpp index 8751797..6941d76 100644 --- a/tests/units/testutils.cpp +++ b/tests/units/testutils.cpp @@ -1,3 +1,11 @@ +//# +//# Copyright (C) 2020-2021 QuasarApp. +//# Distributed under the lgplv3 software license, see the accompanying +//# Everyone is permitted to copy and distribute verbatim copies +//# of this license document, but changing it is not allowed. +//# + + #include "testutils.h" #include <QCoreApplication> diff --git a/tests/units/testutils.h b/tests/units/testutils.h index fbedd3c..ec1e9d3 100644 --- a/tests/units/testutils.h +++ b/tests/units/testutils.h @@ -1,3 +1,11 @@ +//# +//# Copyright (C) 2020-2021 QuasarApp. +//# Distributed under the lgplv3 software license, see the accompanying +//# Everyone is permitted to copy and distribute verbatim copies +//# of this license document, but changing it is not allowed. +//# + + #ifndef TESTUTILS_H #define TESTUTILS_H