aboutsummaryrefslogtreecommitdiff
path: root/src/zencore/mpscqueue.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2026-03-15 20:42:36 +0100
committerStefan Boberg <[email protected]>2026-03-15 20:42:36 +0100
commit9c724efbf6b38466a9b6bfde37236369f1e85cb8 (patch)
tree214e1ec00c5bfca0704ce52789017ade734fd054 /src/zencore/mpscqueue.cpp
parentreduced WaitForThreads time to see how it behaves with explicit thread pools (diff)
parentadd buildid updates to oplog and builds test scripts (#838) (diff)
downloadzen-9c724efbf6b38466a9b6bfde37236369f1e85cb8.tar.xz
zen-9c724efbf6b38466a9b6bfde37236369f1e85cb8.zip
Merge remote-tracking branch 'origin/main' into sb/threadpool
Diffstat (limited to 'src/zencore/mpscqueue.cpp')
-rw-r--r--src/zencore/mpscqueue.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/zencore/mpscqueue.cpp b/src/zencore/mpscqueue.cpp
index 29c76c3ca..bdd22e20c 100644
--- a/src/zencore/mpscqueue.cpp
+++ b/src/zencore/mpscqueue.cpp
@@ -7,7 +7,8 @@
namespace zen {
-#if ZEN_WITH_TESTS && 0
+#if ZEN_WITH_TESTS
+TEST_SUITE_BEGIN("core.mpscqueue");
TEST_CASE("mpsc")
{
MpscQueue<std::string> Queue;
@@ -15,6 +16,7 @@ TEST_CASE("mpsc")
std::optional<std::string> Value = Queue.Dequeue();
CHECK_EQ(Value, "hello");
}
+TEST_SUITE_END();
#endif
void
@@ -22,4 +24,4 @@ mpscqueue_forcelink()
{
}
-} // namespace zen \ No newline at end of file
+} // namespace zen