Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
26 lines
1004 B
Diff
26 lines
1004 B
Diff
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
|
|
index 58ab5c2..4f56a25 100644
|
|
--- a/tests/CMakeLists.txt
|
|
+++ b/tests/CMakeLists.txt
|
|
@@ -1,5 +1,7 @@
|
|
include(GoogleTest)
|
|
|
|
+set(CMAKE_CXX_STANDARD 17)
|
|
+
|
|
function(add_gmock_test target)
|
|
add_executable(${target} ${ARGN})
|
|
target_link_libraries(${target} config playlist bookmarks event_bus ${GMOCK_BOTH_LIBRARIES} ${XDG_BASEDIR_LIBRARIES} ${Boost_LIBRARIES} ${CURL_LIBRARIES} ${JSONCPP_LIBRARIES} pthread)
|
|
diff --git a/tests/bookmarks_test.cpp b/tests/bookmarks_test.cpp
|
|
index 2d72356..97f898a 100644
|
|
--- a/tests/bookmarks_test.cpp
|
|
+++ b/tests/bookmarks_test.cpp
|
|
@@ -215,7 +215,7 @@ TEST(Bookmarks, test_that_stations_are_added_and_removed_from_a_group_and_moved)
|
|
ASSERT_FALSE(bm[0].stations[0].notifications);
|
|
|
|
// vector only throws when using at()
|
|
- EXPECT_THROW(bm[0].stations.at(100), std::out_of_range);
|
|
+ EXPECT_THROW(static_cast<void>(bm[0].stations.at(100)), std::out_of_range);
|
|
EXPECT_THROW(bm[1], std::out_of_range);
|
|
}
|
|
|