From bf851f9836df1e92990dca00662a9ea3cd4f1fda Mon Sep 17 00:00:00 2001 From: Tobias Fuchs Date: Wed, 15 Apr 2015 21:30:59 +0200 Subject: [PATCH] containers_cpp: fix in unit tests of LlxScx --- containers_cpp/test/llx_scx_test.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/containers_cpp/test/llx_scx_test.cc b/containers_cpp/test/llx_scx_test.cc index 2e0ae61..014272e 100644 --- a/containers_cpp/test/llx_scx_test.cc +++ b/containers_cpp/test/llx_scx_test.cc @@ -64,7 +64,7 @@ void LlxScxTest::ParallelTest() { if (return_val != EMBB_SUCCESS) EMBB_THROW(embb::base::ErrorException, "Could not get thread id!"); // Threads try to append n nodes to a linked list in parallel - for (char value = 'a'; value <= 'z';) { + for (char value = 'a'; value <= 'p';) { // Find node to append new element on: internal::LlxScxRecord * node = &head_llx; internal::LlxScxRecord * next = node->Data().next_; @@ -84,7 +84,7 @@ void LlxScxTest::ParallelTest() { internal::FixedSizeList *> finalize_deps(0); linked_deps.PushBack(node); // Create new node: - Node new_node(static_cast(thread_index), value); + Node new_node(static_cast(thread_index), value, next); internal::LlxScxRecord * new_node_ptr = new internal::LlxScxRecord(new_node); // Convert node pointer to size_t: @@ -119,7 +119,7 @@ void LlxScxTest::ParallelTestPost() { node = next; next = next->Data().next_; } - PT_ASSERT_EQ_MSG(static_cast(26 * num_threads_), values.size(), + PT_ASSERT_EQ_MSG(static_cast(16 * num_threads_), values.size(), "Unexpected size of result list"); } -- libgit2 0.26.0