Skip to content
This repository was archived by the owner on Mar 4, 2023. It is now read-only.

Commit ad69e69

Browse files
committed
fixed tests for mac
1 parent a0f9e31 commit ad69e69

File tree

9 files changed

+10
-8
lines changed

9 files changed

+10
-8
lines changed

tests/auto/datasync/CachingDataStoreTest/tst_cachingdatastore.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ private Q_SLOTS:
2424

2525
void CachingDataStoreTest::initTestCase()
2626
{
27-
#ifdef Q_OS_UNIX
27+
#ifdef Q_OS_LINUX
2828
Q_ASSERT(qgetenv("LD_PRELOAD").contains("Qt5DataSync"));
2929
#endif
3030

tests/auto/datasync/ChangeControllerTest/tst_changecontroller.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ private Q_SLOTS:
3737

3838
void ChangeControllerTest::initTestCase()
3939
{
40-
#ifdef Q_OS_UNIX
40+
#ifdef Q_OS_LINUX
4141
Q_ASSERT(qgetenv("LD_PRELOAD").contains("Qt5DataSync"));
4242
#endif
4343

tests/auto/datasync/LocalStoreTest/tst_localstore.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ private Q_SLOTS:
3434

3535
void LocalStoreTest::initTestCase()
3636
{
37-
#ifdef Q_OS_UNIX
37+
#ifdef Q_OS_LINUX
3838
Q_ASSERT(qgetenv("LD_PRELOAD").contains("Qt5DataSync"));
3939
#endif
4040

tests/auto/datasync/SetupTest/tst_setup.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ private Q_SLOTS:
2323

2424
void SetupTest::initTestCase()
2525
{
26-
#ifdef Q_OS_UNIX
26+
#ifdef Q_OS_LINUX
2727
Q_ASSERT(qgetenv("LD_PRELOAD").contains("Qt5DataSync"));
2828
#endif
2929

tests/auto/datasync/SqlStateHolderTest/tst_sqlstateholder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ private Q_SLOTS:
2525

2626
void SqlStateHolderTest::initTestCase()
2727
{
28-
#ifdef Q_OS_UNIX
28+
#ifdef Q_OS_LINUX
2929
Q_ASSERT(qgetenv("LD_PRELOAD").contains("Qt5DataSync"));
3030
#endif
3131

tests/auto/datasync/SqlStoreTest/tst_sqlstore.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ private Q_SLOTS:
3232

3333
void SqlStoreTest::initTestCase()
3434
{
35-
#ifdef Q_OS_UNIX
35+
#ifdef Q_OS_LINUX
3636
Q_ASSERT(qgetenv("LD_PRELOAD").contains("Qt5DataSync"));
3737
#endif
3838

tests/auto/datasync/StateHolderTest/tst_stateholder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ private Q_SLOTS:
2525

2626
void StateHolderTest::initTestCase()
2727
{
28-
#ifdef Q_OS_UNIX
28+
#ifdef Q_OS_LINUX
2929
Q_ASSERT(qgetenv("LD_PRELOAD").contains("Qt5DataSync"));
3030
#endif
3131

tests/auto/datasync/WsRemoteConnectorTest/tst_wsremoteconnector.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ private Q_SLOTS:
3737

3838
void WsRemoteConnectorTest::initTestCase()
3939
{
40-
#ifdef Q_OS_UNIX
40+
#ifdef Q_OS_LINUX
4141
Q_ASSERT(qgetenv("LD_PRELOAD").contains("Qt5DataSync"));
4242
#endif
4343

tests/auto/datasync/tests.pri

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@ SOURCES += \
1717
$$PWD/mockdatamerger.cpp
1818

1919
INCLUDEPATH += $$PWD
20+
21+
mac: QMAKE_LFLAGS += '-Wl,-rpath,\'$$OUT_PWD/../../../../lib\''

0 commit comments

Comments
 (0)