diff options
author | Alexander Golubev <fatzer2@gmail.com> | 2016-12-21 01:09:27 +0300 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2017-07-22 15:56:51 +0200 |
commit | 933dc8a3f8b14eff9c51c1a7ece8c29754ad378a (patch) | |
tree | 732dfb5731f4911242ca86cd43403b88ac0a07d1 /kio/tests/ksycocatest.cpp | |
parent | a6435d8bbc997ce1438a537f3dae5f749c4d5e3b (diff) | |
download | tdelibs-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/ksycocatest.cpp')
-rw-r--r-- | kio/tests/ksycocatest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kio/tests/ksycocatest.cpp b/kio/tests/ksycocatest.cpp index 4a4fcabb0..12f5a4cad 100644 --- a/kio/tests/ksycocatest.cpp +++ b/kio/tests/ksycocatest.cpp @@ -43,7 +43,7 @@ bool check(TQString txt, TQString a, TQString b) kdDebug() << txt << " : checking '" << a << "' against expected value '" << b << "'... " << "ok" << endl; } else { - kdDebug() << txt << " : checking '" << a << "' against expected value '" << b << "'... " << "KO !" << endl + kdError() << txt << " : checking '" << a << "' against expected value '" << b << "'... " << "KO !" << endl ; exit(1); } @@ -52,7 +52,7 @@ bool check(TQString txt, TQString a, TQString b) void debug(TQString txt) { - fprintf(stderr, "%s\n", txt.ascii()); + fprintf(stderr, "%s\n", txt.utf8().data()); } void debug(const char *txt) @@ -67,7 +67,7 @@ void debug(const char *format, const char *txt) int main(int argc, char *argv[]) { - KApplication k(argc,argv,"whatever",false/*noGUI*/); // KMessageBox needs KApp for makeStdCaption + KApplication k(argc,argv,"whatever",true); // KMessageBox needs KApp for makeStdCaption TQCString instname = "kword"; TQString desktopPath = TQString::fromLatin1( "Office/%1.desktop" ).arg( instname ); |