From 05bf9bd074ab254e42400e7d42db6e06dd977953 Mon Sep 17 00:00:00 2001 From: David Faure Date: Sun, 4 Apr 2021 19:17:34 +0200 Subject: autotests: look for cmd, not bash, on Windows --- autotests/kdesktopfiletest.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'autotests/kdesktopfiletest.cpp') 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(); -- cgit v1.2.1