Skip to content

Commit a31f428

Browse files
committed
solve ODR issue with dlopened tests
Signed-off-by: Caolán McNamara <[email protected]> Change-Id: I051c78eafddc41c2c04535a3c03ee095576df57a
1 parent 5255514 commit a31f428

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

test/Makefile.am

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ AM_CPPFLAGS = -pthread -I$(top_srcdir) -DBUILDING_TESTS -DLOK_ABORT_ON_ASSERTION
137137

138138
wsd_sources = \
139139
../kit/Kit.cpp \
140-
../kit/KitGlobals.cpp \
141140
../kit/KitWebSocket.cpp \
142141
../kit/TestStubs.cpp \
143142
../wsd/FileServerUtil.cpp \
@@ -157,6 +156,7 @@ test_base_sources = \
157156
UtilTests.cpp \
158157
WopiProofTests.cpp \
159158
UriTests.cpp \
159+
TestGlobals.cpp \
160160
$(wsd_sources)
161161

162162
common_sources = \
@@ -198,6 +198,7 @@ unittest_CPPFLAGS = -I$(top_srcdir) -DBUILDING_TESTS -DSTANDALONE_CPPUNIT -g
198198
unittest_SOURCES = \
199199
$(test_base_sources) \
200200
$(common_sources) \
201+
../common/Globals.cpp \
201202
../wsd/TestStubs.cpp \
202203
test.cpp
203204

test/TestGlobals.cpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
2+
/*
3+
* Copyright the Collabora Online contributors.
4+
*
5+
* SPDX-License-Identifier: MPL-2.0
6+
*
7+
* This Source Code Form is subject to the terms of the Mozilla Public
8+
* License, v. 2.0. If a copy of the MPL was not distributed with this
9+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
10+
*/
11+
12+
#include "kit/KitGlobals.hpp"
13+
14+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

0 commit comments

Comments
 (0)