File: system-gtest.patch

package info (click to toggle)
dosbox-x 2025.10.07%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 53,184 kB
  • sloc: cpp: 339,023; ansic: 165,252; sh: 1,455; makefile: 963; perl: 385; python: 106; asm: 57
file content (40 lines) | stat: -rw-r--r-- 1,208 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
Description: Build with system gtest/gmock
Author: Stephen Kitt <skitt@debian.org>
Forwarded: not-needed

--- a/configure.ac
+++ b/configure.ac
@@ -994,6 +994,7 @@
      AC_DEFINE(C_DEBUG,1)
      if test x$enable_debug = xheavy ; then 
        AC_DEFINE(C_HEAVY_DEBUG,1)
+       LIBS="$LIBS -lgmock -lgtest"
      fi
    else 
      AC_MSG_ERROR([Can't find curses, which is required for debug mode])
--- a/tests/tests.h
+++ b/tests/tests.h
@@ -2,23 +2,6 @@
 
 #if !defined(_WIN32_WINDOWS)
 
-// The following includes necessary gTest/gMock source files for unit tests.
-// Launch DOSBox-X with -tests option in debug builds to run unit tests.
-
-#include "gmock/gmock.cc"
-#include "gmock/gmock-cardinalities.cc"
-#include "gmock/gmock-internal-utils.cc"
-#include "gmock/gmock-matchers.cc"
-#include "gmock/gmock-spec-builders.cc"
-#include "gtest/gtest.cc"
-#include "gtest/gtest-death-test.cc"
-#include "gtest/gtest-filepath.cc"
-#include "gtest/gtest-matchers.cc"
-#include "gtest/gtest-port.cc"
-#include "gtest/gtest-printers.cc"
-#include "gtest/gtest-test-part.cc"
-#include "gtest/gtest-typed-test.cc"
-
 // The following are source files containing unit tests.
 
 #include "dos_files_tests.cpp"