summaryrefslogtreecommitdiffstats
path: root/tdeio/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-01-29 02:48:50 +0100
commit86921d65c5c218a2c721d905a93885cf2fe9b7b7 (patch)
tree617bb19f28f8fbff084e9d58ada0e037edb861e1 /tdeio/tests/jobtest.cpp
parentde48b4a218391da82d8bb725e5b8cb3038155065 (diff)
downloadtdelibs-86921d65c5c218a2c721d905a93885cf2fe9b7b7.tar.gz
tdelibs-86921d65c5c218a2c721d905a93885cf2fe9b7b7.zip
tdeio: add tests
Signed-off-by: Alexander Golubev <fatzer2@gmail.com> (cherry picked from commit ed74769bfaae171809c0bc1a10a8ba0f6ff8895f)
Diffstat (limited to 'tdeio/tests/jobtest.cpp')
-rw-r--r--tdeio/tests/jobtest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tdeio/tests/jobtest.cpp b/tdeio/tests/jobtest.cpp
index 076bc250d..7df3ff3f0 100644
--- a/tdeio/tests/jobtest.cpp
+++ b/tdeio/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( TDEIO::Job* job )