libreoffice-online/test
Miklos Vajna ea9c80b588 test: fix ODR-violation in SigUtil
==6642==ERROR: AddressSanitizer: odr-violation (0x0000024db3a0):
  [1] size=4 'SigUtil::SigHandlerTrap::SigHandling' ../common/SigUtil.cpp:113:38
  [2] size=4 'SigUtil::SigHandlerTrap::SigHandling' common/SigUtil.cpp:113:38
These globals were registered at these points:
  [1]:
    #0 0x68d7d8 in __asan_register_globals.part.13 lode/packages/llvm-472c6ef8b0f53061b049039f9775ab127beafbe4.src/compiler-rt/lib/asan/asan_globals.cc:365
    #1 0x7f4b7eeed83b in asan.module_ctor (online-san/test/../test/.libs/unit-base.so+0x6fd83b)

  [2]:
    #0 0x68d7d8 in __asan_register_globals.part.13 lode/packages/llvm-472c6ef8b0f53061b049039f9775ab127beafbe4.src/compiler-rt/lib/asan/asan_globals.cc:365
    #1 0x104590e in asan.module_ctor (online-san/loolwsd+0x104590e)

No need to include SigUtil for unit-base (invoked during 'make check'),
it's only needed for unittest_SOURCES (invoked during 'make').

Same for Log::IsShutdown(), 'vtable for Session', 'typeinfo name for
TileQueue', 'JWTAuth::_key', 'vtable for ClientSession',
'UnitBase::Global', 'SocketPoll::DefaultPollTimeoutMs' and
'SslContext::Instance'.

But don't just remove all wsd_sources from the new-style unit tests, as
that would lead to missing symbols:

[ loolwsd ] ERR  Failed to load online-san/test/../test/.libs/unit-base.so: online-san/test/../test/.libs/unit-base.so: undefined symbol: _Z20documentViewCallbackiPKcPv| common/Unit.cpp:40

(Seen during make check's unit-base.)

Change-Id: I305185f6437c5b4887d8e09a592e578a94f2659c
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/87323
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2020-01-24 10:34:00 +01:00
..
data test: simplify the timeout logic. 2020-01-21 15:07:54 +00:00
.gitignore
countloolkits.hpp killpoco: removed StringTokenizer from test directory 2019-11-13 09:20:25 +01:00
DeltaTests.cpp test: switch to using ClientPortNumber to allow parallelism. 2020-01-21 15:07:54 +00:00
fakesockettest.cpp
helpers.hpp test: switch to using ClientPortNumber to allow parallelism. 2020-01-21 15:07:54 +00:00
httpcrashtest.cpp test: switch to using ClientPortNumber to allow parallelism. 2020-01-21 15:07:54 +00:00
httpwstest.cpp Convert some closing tests to a new-style one 2019-12-20 09:46:47 +01:00
integration-http-server.cpp test: dung out redundant LOOL_TEST_CLIENT_PORT. 2020-01-21 15:07:54 +00:00
Makefile.am test: fix ODR-violation in SigUtil 2020-01-24 10:34:00 +01:00
run_unit.sh.in test: remove documentation about no longer working CPPUNIT_TEST_NAME variant 2020-01-24 00:09:34 +01:00
test.cpp test: simplify and remove obsolete /proc grokking code. 2020-01-21 15:07:54 +00:00
test.hpp test: dung out redundant LOOL_TEST_CLIENT_PORT. 2020-01-21 15:07:54 +00:00
TileCacheTests.cpp test: dung out redundant LOOL_TEST_CLIENT_PORT. 2020-01-21 15:07:54 +00:00
TileQueueTests.cpp Fix issues with size_t and ssize_t on 32bits machines 2019-11-22 11:20:57 +01:00
UnitAdmin.cpp killpoco: removed StringTokenizer from test directory 2019-11-13 09:20:25 +01:00
UnitBadDocLoad.cpp Convert the WS error tests to a new-style one 2020-01-09 08:59:09 +01:00
UnitCalc.cpp Convert some Calc tests to a new-style one 2019-12-06 08:51:51 +01:00
UnitClient.cpp test: simplify and remove obsolete /proc grokking code. 2020-01-21 15:07:54 +00:00
UnitClose.cpp Convert some closing tests to a new-style one 2019-12-20 09:46:47 +01:00
UnitConvert.cpp killpoco: removed StringTokenizer from test directory 2019-11-13 09:20:25 +01:00
UnitCopyPaste.cpp killpoco: removed StringTokenizer from test directory 2019-11-13 09:20:25 +01:00
UnitCursor.cpp Convert cursor tests to a new-style one 2019-12-02 09:11:39 +01:00
UnitEachView.cpp test: improve unit-tests 2019-11-25 17:05:49 +01:00
UnitFuzz.cpp killpoco: removed StringTokenizer from test directory 2019-11-13 09:20:25 +01:00
UnitHosting.cpp Convert some of the integration-http-server tests to new-style ones 2020-01-17 09:16:41 +01:00
UnitHTTP.cpp test: fix unit-http 2019-11-26 10:51:01 +01:00
UnitInsertDelete.cpp Convert some insert/delete tests to a new-style one 2019-12-18 22:18:08 +01:00
UnitLargePaste.cpp typo fixes in comments and code 2019-10-08 11:49:45 +02:00
UnitLoad.cpp wsd: fix a typo 2019-12-06 12:12:43 +01:00
UnitLoadTorture.cpp Convert load torture testcase to a new-style one 2019-10-21 09:04:12 +02:00
UnitOAuth.cpp
UnitOOB.cpp killpoco: removed StringTokenizer from test directory 2019-11-13 09:20:25 +01:00
UnitPasswordProtected.cpp killpoco: removed StringTokenizer from test directory 2019-11-13 09:20:25 +01:00
UnitPaste.cpp Convert paste testcase to a new-style one 2019-10-18 09:06:53 +02:00
UnitPrefork.cpp
UnitRenderingOptions.cpp killpoco: removed StringTokenizer from test directory 2019-11-13 09:20:25 +01:00
UnitRenderShape.cpp Convert render shape tests to a new-style one 2019-11-04 08:34:44 +01:00
UnitSession.cpp Convert "client session" tests to a new-style one 2019-11-14 08:40:59 +01:00
UnitStorage.cpp
UnitTiffLoad.cpp
UnitTileCache.cpp
UnitTimeout.cpp killpoco: Don't use POCO for app exit values. 2019-11-07 12:23:47 +01:00
UnitTyping.cpp Added normalizedViewId to the tests with tilemsg 2019-10-15 18:13:03 +03:00
UnitUNOCommand.cpp Convert "uno command" tests to a new-style one 2019-11-18 08:56:41 +01:00
UnitWOPI.cpp test: validate ExtendedData sent to WOPI 2019-11-22 01:51:34 +01:00
UnitWOPIDocumentConflict.cpp
UnitWOPILoadEncoded.cpp
UnitWopiOwnertermination.cpp
UnitWOPIRenameFile.cpp
UnitWOPISaveAs.cpp
UnitWOPITemplate.cpp test: switch to using ClientPortNumber to allow parallelism. 2020-01-21 15:07:54 +00:00
UnitWOPIVersionRestore.cpp
UnitWOPIWatermark.cpp killpoco: removed StringTokenizer from test directory 2019-11-13 09:20:25 +01:00
WhiteBoxTests.cpp Resolved: Server crash when link opened in new tab 2020-01-22 23:23:51 +01:00
WopiTestServer.hpp