summaryrefslogtreecommitdiffstats
path: root/tests/auto/networkselftest/networkselftest.pro
diff options
context:
space:
mode:
authorAleksandar Sasha Babic <aleksandar.babic@nokia.com>2009-09-25 08:36:39 (GMT)
committerAleksandar Sasha Babic <aleksandar.babic@nokia.com>2009-09-25 08:50:41 (GMT)
commit30fffab792fbce4c2d415140e7cf15416f739e60 (patch)
treebf294ef04dacb7fa3bde861be38d0828eaff68bd /tests/auto/networkselftest/networkselftest.pro
parent29234e97ad6187f9f7625ef75baaf43a05eeafad (diff)
downloadQt-30fffab792fbce4c2d415140e7cf15416f739e60.zip
Qt-30fffab792fbce4c2d415140e7cf15416f739e60.tar.gz
Qt-30fffab792fbce4c2d415140e7cf15416f739e60.tar.bz2
Adding test for line endings
Some network tests depend on reading file and comparing it with data fetched from network. On Windows, if not set properly, git will append CRLF when checking out. This makes tests to fail as sizes and binary content are not as expected. Reviewed-by: Janne Anttila
Diffstat (limited to 'tests/auto/networkselftest/networkselftest.pro')
-rw-r--r--tests/auto/networkselftest/networkselftest.pro15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/auto/networkselftest/networkselftest.pro b/tests/auto/networkselftest/networkselftest.pro
index ac610de..b0d537a 100644
--- a/tests/auto/networkselftest/networkselftest.pro
+++ b/tests/auto/networkselftest/networkselftest.pro
@@ -3,3 +3,18 @@ load(qttest_p4)
SOURCES += tst_networkselftest.cpp
QT = core network
+wince*: {
+ addFiles.sources = rfc3252.txt
+ addFiles.path = .
+ DEPLOYMENT = addFiles
+ DEFINES += SRCDIR=\\\"\\\"
+} else:symbian* {
+ addFiles.sources = rfc3252.txt
+ addFiles.path = .
+ DEPLOYMENT = addFiles
+} else:vxworks*: {
+ DEFINES += SRCDIR=\\\"\\\"
+} else {
+ DEFINES += SRCDIR=\\\"$$PWD/\\\"
+}
+