Fix XDG tests on Windows (#4779)

Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
nerix 2023-08-21 19:00:37 +02:00 committed by GitHub
parent 381d5c4276
commit ea30c3a619
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View file

@ -3,6 +3,8 @@
#include <gtest/gtest.h>
#include <QDebug>
#if defined(Q_OS_UNIX) and !defined(Q_OS_DARWIN)
using namespace chatterino;
TEST(XDGDesktopFile, String)
@ -17,3 +19,5 @@ TEST(XDGDesktopFile, String)
ASSERT_EQ(desktopFile.getEntries("test").size(), 2);
}
#endif

View file

@ -3,6 +3,8 @@
#include <gtest/gtest.h>
#include <QDebug>
#if defined(Q_OS_UNIX) and !defined(Q_OS_DARWIN)
using namespace chatterino;
TEST(XDGHelper, ParseDesktopExecProgram)
@ -60,3 +62,5 @@ TEST(XDGHelper, ParseDesktopExecProgram)
<< output.toStdString() << "'";
}
}
#endif