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/kruntest.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/kruntest.cpp')
-rw-r--r-- | tdeio/tests/kruntest.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tdeio/tests/kruntest.cpp b/tdeio/tests/kruntest.cpp index f2065f8b8..7562b488a 100644 --- a/tdeio/tests/kruntest.cpp +++ b/tdeio/tests/kruntest.cpp @@ -121,7 +121,7 @@ void checkPDE(const KService &service, const KURL::List &urls, bool hs, bool tf, int main(int argc, char **argv) { - TDEApplication app( argc, argv, "kruntest", true /* it _has_ a GUI ! */); + TDEApplication app( argc, argv, "kruntest", true /*styles*/, true /* it _has_ a GUI ! */); // First some non-interactive tests checkBN( "/usr/bin/ls", true, "ls"); @@ -164,16 +164,16 @@ int main(int argc, char **argv) for (int te = 0; te < 2; te++) for (int ex = 0; ex < 2; ex++) { int fd = creat("kruntest.desktop", 0666); - FILE *f; + FILE *f; if (fd < 0) abort(); - f = KDE_fdopen(fd, "w"); + f = KDE_fdopen(fd, "w"); fprintf(f, "[Desktop Entry]\n" - "Type=Application\n" - "Name=just_a_test\n" - "Icon=~/icon.png\n" - "%s\n%s\n%s\n",execs[ex],terms[te],sus[su]); + "Type=Application\n" + "Name=just_a_test\n" + "Icon=~/icon.png\n" + "%s\n%s\n%s\n",execs[ex],terms[te],sus[su]); close(fd); - fclose(f); + fclose(f); KService s(TQDir::currentDirPath() + "/kruntest.desktop"); unlink("kruntest.desktop"); checkPDE( s, l0, hs, false, rslts[ex+te*2+su*4+hs*8]); |