summaryrefslogtreecommitdiffstats
path: root/kio/tests/jobtest.cpp
diff options
context:
space:
mode:
authorAlexander Golubev <fatzer2@gmail.com>2016-12-21 01:09:27 +0300
committerSlávek Banko <slavek.banko@axis.cz>2017-07-22 15:56:51 +0200
commit933dc8a3f8b14eff9c51c1a7ece8c29754ad378a (patch)
tree732dfb5731f4911242ca86cd43403b88ac0a07d1 /kio/tests/jobtest.cpp
parenta6435d8bbc997ce1438a537f3dae5f749c4d5e3b (diff)
downloadtdelibs-933dc8a3f8b14eff9c51c1a7ece8c29754ad378a.tar.gz
tdelibs-933dc8a3f8b14eff9c51c1a7ece8c29754ad378a.zip
tdeio: add tests
Signed-off-by: Alexander Golubev <fatzer2@gmail.com> (cherry picked from commit ed74769bfaae171809c0bc1a10a8ba0f6ff8895f)
Diffstat (limited to 'kio/tests/jobtest.cpp')
-rw-r--r--kio/tests/jobtest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/kio/tests/jobtest.cpp b/kio/tests/jobtest.cpp
index fb2b001db..a50cf83f9 100644
--- a/kio/tests/jobtest.cpp
+++ b/kio/tests/jobtest.cpp
@@ -200,7 +200,7 @@ void JobTest::get()
kapp->eventLoop()->enterLoop();
assert( m_result == 0 ); // no error
assert( m_data.size() == 11 );
- assert( TQCString( m_data ) == "Hello world" );
+ assert( memcmp (m_data, "Hello world", m_data.size()) == 0 ); // m_data is not null-terminated
}
void JobTest::slotGetResult( KIO::Job* job )