diff options
author | Alexander Golubev <fatzer2@gmail.com> | 2016-12-21 01:09:27 +0300 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2017-01-29 02:27:15 +0100 |
commit | ed74769bfaae171809c0bc1a10a8ba0f6ff8895f (patch) | |
tree | 2be1a9e1f24c538b0f682e733794336f6fe54193 /tdeio/tests/tdesycocatest.cpp | |
parent | d556a8752c0862aa2d84a105dc8ac41b61ba7824 (diff) | |
download | tdelibs-ed74769bfaae171809c0bc1a10a8ba0f6ff8895f.tar.gz tdelibs-ed74769bfaae171809c0bc1a10a8ba0f6ff8895f.zip |
tdeio: add tests
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
Diffstat (limited to 'tdeio/tests/tdesycocatest.cpp')
-rw-r--r-- | tdeio/tests/tdesycocatest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tdeio/tests/tdesycocatest.cpp b/tdeio/tests/tdesycocatest.cpp index 67b6b55ba..f21402405 100644 --- a/tdeio/tests/tdesycocatest.cpp +++ b/tdeio/tests/tdesycocatest.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[]) { - TDEApplication k(argc,argv,"whatever",false/*noGUI*/); // KMessageBox needs KApp for makeStdCaption + TDEApplication k(argc,argv,"whatever",true); // KMessageBox needs KApp for makeStdCaption TQCString instname = "kword"; TQString desktopPath = TQString::fromLatin1( "Office/%1.desktop" ).arg( instname ); |