aboutsummaryrefslogtreecommitdiff
path: root/tests/tst_utils.cpp
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-01-15 15:06:55 +0100
committerRobert Tari <robert@tari.in>2021-02-03 11:33:21 +0100
commit792fe77e31364210aac057fb7ed2b5d652a9940d (patch)
tree21ab5c9bac4380a6ee160fb61bc03bb4c9d564a8 /tests/tst_utils.cpp
parentdc7ae44a907e6338e8bef28a2f35130ef6d09739 (diff)
downloadlibayatana-common-792fe77e31364210aac057fb7ed2b5d652a9940d.tar.gz
libayatana-common-792fe77e31364210aac057fb7ed2b5d652a9940d.tar.bz2
libayatana-common-792fe77e31364210aac057fb7ed2b5d652a9940d.zip
tests/: Don't run Lomiri related unit test, if library hasn't been built against lomiri-uri-dispatcher.
Diffstat (limited to 'tests/tst_utils.cpp')
-rw-r--r--tests/tst_utils.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/tst_utils.cpp b/tests/tst_utils.cpp
index d7a4946..ac671f0 100644
--- a/tests/tst_utils.cpp
+++ b/tests/tst_utils.cpp
@@ -35,12 +35,14 @@ public:
}
};
+#ifdef HAS_URLDISPATCHER
TEST_F(XdgCurrentDesktopUtilsTest, isLomiri)
{
EXPECT_FALSE(is_lomiri());
setenv("XDG_CURRENT_DESKTOP", "Lomiri", 1);
EXPECT_TRUE(is_lomiri());
}
+#endif
TEST_F(XdgCurrentDesktopUtilsTest, isGnome)
{