diff options
| author | David Faure <faure@kde.org> | 2021-04-04 19:17:34 +0200 | 
|---|---|---|
| committer | David Faure <faure@kde.org> | 2021-04-04 19:17:34 +0200 | 
| commit | 05bf9bd074ab254e42400e7d42db6e06dd977953 (patch) | |
| tree | 7465338235f9cb8f4f68f7e3e9c176607beee2ae | |
| parent | 6b99fccf95382d887ad9695ed4972a82cd31cebc (diff) | |
| download | kconfig-05bf9bd074ab254e42400e7d42db6e06dd977953.tar.gz kconfig-05bf9bd074ab254e42400e7d42db6e06dd977953.tar.bz2 | |
autotests: look for cmd, not bash, on Windows
| -rw-r--r-- | autotests/kdesktopfiletest.cpp | 9 | 
1 files changed, 7 insertions, 2 deletions
| diff --git a/autotests/kdesktopfiletest.cpp b/autotests/kdesktopfiletest.cpp index cadc3b3d..b8235606 100644 --- a/autotests/kdesktopfiletest.cpp +++ b/autotests/kdesktopfiletest.cpp @@ -227,8 +227,13 @@ void KDesktopFileTest::testTryExecWithAuthorizeAction()                "Type=Application\n"                "Name=My Application\n"                "Exec=kfoo\n" -              "TryExec=bash\n" -              "X-KDE-AuthorizeAction=someAction" +              "TryExec="; +#ifdef Q_OS_WIN +        ts << "cmd\n"; +#else +        ts << "bash\n"; +#endif +        ts << "X-KDE-AuthorizeAction=someAction"                "\n";          file.close(); | 
