Fix duplicate main() linker error in tests
qt-migration-copilot-demo/pipeline/pr-main There was a failure building this commit
qt-migration-copilot-demo/pipeline/pr-main There was a failure building this commit
- Merged test_mainwindow.cpp tests into test_main.cpp to have single main() - Removed test_mainwindow.cpp from CMakeLists.txt test executable - Qt test executables should have only one main() via QTEST_MAIN() Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Entire-Checkpoint: 0f6858921c53
This commit is contained in:
3 files changed
+36
-50
No files matched your search
@@ -61,7 +61,6 @@ enable_testing()
|
||||
# Add test executable
|
||||
add_executable(Qt6MigratedBenchmarkTest
|
||||
tests/test_main.cpp
|
||||
tests/test_mainwindow.cpp
|
||||
MainWindow.h
|
||||
MainWindow.cpp
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user