From 6a72c035ec016d91fc5e64a14cd69a10fa31bc16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Wed, 22 Aug 2012 04:54:41 +0000 Subject: [PATCH] Updated copyright end year [SVN r80133] --- test/intersegment_ptr_test.cpp | 8 ++++---- test/intrusive_ptr_test.cpp | 2 +- test/iset_index_allocation_test.cpp | 2 +- test/iunordered_set_index_allocation_test.cpp | 2 +- test/list_test.cpp | 2 +- test/list_test.hpp | 4 ++-- test/managed_mapped_file_test.cpp | 4 ++-- test/managed_shared_memory_test.cpp | 2 +- test/managed_windows_shared_memory_test.cpp | 4 ++-- test/managed_xsi_shared_memory_test.cpp | 2 +- test/map_index_allocation_test.cpp | 2 +- test/map_test.hpp | 6 +++--- test/mapped_file_test.cpp | 6 +++--- test/memory_algorithm_test.cpp | 2 +- test/memory_algorithm_test_template.hpp | 18 ++++++++--------- test/message_queue_test.cpp | 2 +- test/movable_int.hpp | 6 +++--- test/multi_index_test.cpp | 2 +- test/mutex_test.cpp | 2 +- test/mutex_test_template.hpp | 6 +++--- test/mutex_timeout_test.cpp | 2 +- test/named_allocation_test_template.hpp | 2 +- test/named_condition_test.cpp | 6 +++--- test/named_construct_test.cpp | 2 +- test/named_creation_template.hpp | 8 ++++---- test/named_mutex_test.cpp | 2 +- test/named_recursive_mutex_test.cpp | 2 +- test/named_semaphore_test.cpp | 2 +- test/named_upgradable_mutex_test.cpp | 2 +- test/node_allocator_test.cpp | 2 +- test/node_pool_test.cpp | 2 +- test/node_pool_test.hpp | 10 +++++----- test/null_index_test.cpp | 2 +- test/offset_ptr_test.cpp | 6 +++--- test/print_container.hpp | 4 ++-- test/private_adaptive_pool_test.cpp | 2 +- test/private_node_allocator_test.cpp | 2 +- test/recursive_mutex_test.cpp | 2 +- test/robust_emulation_test.cpp | 2 +- test/robust_mutex_test.hpp | 4 ++-- test/robust_recursive_emulation_test.cpp | 2 +- test/semaphore_test.cpp | 2 +- test/set_test.hpp | 6 +++--- test/sharable_mutex_test_template.hpp | 2 +- test/shared_memory_mapping_test.cpp | 2 +- test/shared_memory_test.cpp | 4 ++-- test/shared_ptr_test.cpp | 6 +++--- test/slist_test.cpp | 2 +- test/stable_vector_test.cpp | 2 +- test/string_test.cpp | 20 +++++++++---------- test/tree_test.cpp | 16 +++++++-------- test/unique_ptr_test.cpp | 6 +++--- test/unordered_test.cpp | 2 +- test/upgradable_mutex_test.cpp | 2 +- test/user_buffer_test.cpp | 8 ++++---- test/util.hpp | 2 +- test/vector_test.cpp | 2 +- test/vector_test.hpp | 8 ++++---- test/vectorstream_test.cpp | 20 +++++++++---------- test/windows_shared_memory_mapping_test.cpp | 4 ++-- test/windows_shared_memory_test.cpp | 2 +- test/xsi_shared_memory_mapping_test.cpp | 4 ++-- 62 files changed, 137 insertions(+), 137 deletions(-) diff --git a/test/intersegment_ptr_test.cpp b/test/intersegment_ptr_test.cpp index 709acd4..d3a91ca 100644 --- a/test/intersegment_ptr_test.cpp +++ b/test/intersegment_ptr_test.cpp @@ -1,6 +1,6 @@ ////////////////////////////////////////////////////////////////////////////// // -// (C) Copyright Ion Gaztanaga 2007. Distributed under the Boost +// (C) Copyright Ion Gaztanaga 2007-2012. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // @@ -48,7 +48,7 @@ bool test_types_and_convertions() pcint_t pcint(0); pvint_t pvint(0); pcvint_t pcvint(0); - + pint = &dummy_int; pcint = &dummy_int; pvint = &dummy_int; @@ -75,7 +75,7 @@ bool test_arithmetic() typedef intersegment_ptr pint_t; const int NumValues = 5; int values[NumValues]; - + //Initialize p pint_t p = values; if(p.get() != values) @@ -376,7 +376,7 @@ bool test_multi_segment_shared_memory() shared_memory_object::remove("kk0"); managed_multi_shared_memory mshm(create_only, "kk", 4096); } - + shared_memory_object::remove("kk0"); return true; } diff --git a/test/intrusive_ptr_test.cpp b/test/intrusive_ptr_test.cpp index fc8db0e..d3fb0a1 100644 --- a/test/intrusive_ptr_test.cpp +++ b/test/intrusive_ptr_test.cpp @@ -1,7 +1,7 @@ ////////////////////////////////////////////////////////////////////////////// // // (C) Copyright Peter Dimov 2002-2005. -// (C) Copyright Ion Gaztanaga 2006. Distributed under the Boost +// (C) Copyright Ion Gaztanaga 2006-2012. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // diff --git a/test/iset_index_allocation_test.cpp b/test/iset_index_allocation_test.cpp index 9e25313..42d03ff 100644 --- a/test/iset_index_allocation_test.cpp +++ b/test/iset_index_allocation_test.cpp @@ -1,6 +1,6 @@ ////////////////////////////////////////////////////////////////////////////// // -// (C) Copyright Ion Gaztanaga 2006. Distributed under the Boost +// (C) Copyright Ion Gaztanaga 2006-2012. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // diff --git a/test/iunordered_set_index_allocation_test.cpp b/test/iunordered_set_index_allocation_test.cpp index 98ab47d..5e8e966 100644 --- a/test/iunordered_set_index_allocation_test.cpp +++ b/test/iunordered_set_index_allocation_test.cpp @@ -1,6 +1,6 @@ ////////////////////////////////////////////////////////////////////////////// // -// (C) Copyright Ion Gaztanaga 2006. Distributed under the Boost +// (C) Copyright Ion Gaztanaga 2006-2012. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // diff --git a/test/list_test.cpp b/test/list_test.cpp index 434f1c7..4ecf55a 100644 --- a/test/list_test.cpp +++ b/test/list_test.cpp @@ -1,6 +1,6 @@ ////////////////////////////////////////////////////////////////////////////// // -// (C) Copyright Ion Gaztanaga 2004-2011. Distributed under the Boost +// (C) Copyright Ion Gaztanaga 2004-2012. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // diff --git a/test/list_test.hpp b/test/list_test.hpp index 4a9f44b..2e54783 100644 --- a/test/list_test.hpp +++ b/test/list_test.hpp @@ -1,6 +1,6 @@ //////////////////////////////////////// // -// (C) Copyright Ion Gaztanaga 2006. Distributed under the Boost +// (C) Copyright Ion Gaztanaga 2006-2012. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // @@ -219,7 +219,7 @@ int list_test (bool copied_allocators_equal = true) shmlist->splice(shmlist->begin(), othershmlist); stdlist->splice(stdlist->begin(), otherstdlist); if(!CheckEqualContainers(shmlist, stdlist)) - return 1; + return 1; } listsize = (int)shmlist->size(); diff --git a/test/managed_mapped_file_test.cpp b/test/managed_mapped_file_test.cpp index 0936995..90f0f00 100644 --- a/test/managed_mapped_file_test.cpp +++ b/test/managed_mapped_file_test.cpp @@ -1,6 +1,6 @@ ////////////////////////////////////////////////////////////////////////////// // -// (C) Copyright Ion Gaztanaga 2004-2011. Distributed under the Boost +// (C) Copyright Ion Gaztanaga 2004-2012. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // @@ -83,7 +83,7 @@ int main () //Construct a vector in the memory-mapped file mfile_vect = mfile.construct ("MyVector") (myallocator); - + //Flush cached data from memory-mapped file to disk mfile.flush(); } diff --git a/test/managed_shared_memory_test.cpp b/test/managed_shared_memory_test.cpp index e589d93..df85082 100644 --- a/test/managed_shared_memory_test.cpp +++ b/test/managed_shared_memory_test.cpp @@ -1,6 +1,6 @@ ////////////////////////////////////////////////////////////////////////////// // -// (C) Copyright Ion Gaztanaga 2004-2011. Distributed under the Boost +// (C) Copyright Ion Gaztanaga 2004-2012. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // diff --git a/test/managed_windows_shared_memory_test.cpp b/test/managed_windows_shared_memory_test.cpp index e5cefcb..aa01119 100644 --- a/test/managed_windows_shared_memory_test.cpp +++ b/test/managed_windows_shared_memory_test.cpp @@ -1,6 +1,6 @@ ////////////////////////////////////////////////////////////////////////////// // -// (C) Copyright Ion Gaztanaga 2004-2011. Distributed under the Boost +// (C) Copyright Ion Gaztanaga 2004-2012. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // @@ -123,7 +123,7 @@ int main () if(!shmem_vect) return -1; } - + //Destroy and check it is not present w_shm_new.destroy_ptr(w_shm_vect); if(0 != w_shm_new.find("MyVector").first) diff --git a/test/managed_xsi_shared_memory_test.cpp b/test/managed_xsi_shared_memory_test.cpp index 03e695e..1492596 100644 --- a/test/managed_xsi_shared_memory_test.cpp +++ b/test/managed_xsi_shared_memory_test.cpp @@ -1,6 +1,6 @@ ////////////////////////////////////////////////////////////////////////////// // -// (C) Copyright Ion Gaztanaga 2008-2011. Distributed under the Boost +// (C) Copyright Ion Gaztanaga 2008-2012. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // diff --git a/test/map_index_allocation_test.cpp b/test/map_index_allocation_test.cpp index bedb6ad..5202a24 100644 --- a/test/map_index_allocation_test.cpp +++ b/test/map_index_allocation_test.cpp @@ -1,6 +1,6 @@ ////////////////////////////////////////////////////////////////////////////// // -// (C) Copyright Ion Gaztanaga 2006. Distributed under the Boost +// (C) Copyright Ion Gaztanaga 2006-2012. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // diff --git a/test/map_test.hpp b/test/map_test.hpp index cebe940..d116667 100644 --- a/test/map_test.hpp +++ b/test/map_test.hpp @@ -1,6 +1,6 @@ //////////////////////////////////////// // -// (C) Copyright Ion Gaztanaga 2006. Distributed under the Boost +// (C) Copyright Ion Gaztanaga 2006-2012. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // @@ -67,7 +67,7 @@ int map_test () MyStdMultiMap *stdmultimap = new MyStdMultiMap; - //Test construction from a range + //Test construction from a range { //This is really nasty, but we have no other simple choice IntPairType aux_vect[50]; @@ -555,7 +555,7 @@ int map_test_copyable () stdmapcopy = *stdmap; shmmmapcopy = *shmmultimap; stdmmapcopy = *stdmultimap; - + if(!CheckEqualContainers(&shmmapcopy, &stdmapcopy)) return 1; if(!CheckEqualContainers(&shmmmapcopy, &stdmmapcopy)) diff --git a/test/mapped_file_test.cpp b/test/mapped_file_test.cpp index 1c89e69..ae19b4f 100644 --- a/test/mapped_file_test.cpp +++ b/test/mapped_file_test.cpp @@ -1,6 +1,6 @@ ////////////////////////////////////////////////////////////////////////////// // -// (C) Copyright Ion Gaztanaga 2004-2011. Distributed under the Boost +// (C) Copyright Ion Gaztanaga 2004-2012. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // @@ -37,7 +37,7 @@ struct file_destroyer ~file_destroyer() { //The last destructor will destroy the file - file_mapping::remove(get_filename().c_str()); + file_mapping::remove(get_filename().c_str()); } }; @@ -72,7 +72,7 @@ int main () test::test_named_creation(); //Create and get name, size and address - { + { mapped_file file1(create_only, get_filename().c_str(), FileSize, read_write, 0, permissions()); //Overwrite all memory diff --git a/test/memory_algorithm_test.cpp b/test/memory_algorithm_test.cpp index 05db1e4..8ed6dec 100644 --- a/test/memory_algorithm_test.cpp +++ b/test/memory_algorithm_test.cpp @@ -1,6 +1,6 @@ ////////////////////////////////////////////////////////////////////////////// // -// (C) Copyright Ion Gaztanaga 2006. Distributed under the Boost +// (C) Copyright Ion Gaztanaga 2006-2012. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // diff --git a/test/memory_algorithm_test_template.hpp b/test/memory_algorithm_test_template.hpp index 2350053..b8eea27 100644 --- a/test/memory_algorithm_test_template.hpp +++ b/test/memory_algorithm_test_template.hpp @@ -1,6 +1,6 @@ ////////////////////////////////////////////////////////////////////////////// // -// (C) Copyright Ion Gaztanaga 2006. Distributed under the Boost +// (C) Copyright Ion Gaztanaga 2006-2012. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // @@ -118,7 +118,7 @@ bool test_allocation_shrink(Allocator &a) std::memset(buffers[i], 0, a.size(buffers[i])); } } - + //Deallocate it in non sequential order for(int j = 0, max = (int)buffers.size() ;j < max @@ -170,7 +170,7 @@ bool test_allocation_expand(Allocator &a) preferred_size = min_size*2; } } - + //Deallocate it in non sequential order for(int j = 0, max = (int)buffers.size() ;j < max @@ -243,7 +243,7 @@ bool test_allocation_shrink_and_expand(Allocator &a) return false; } } - + //Deallocate it in non sequential order for(int j = 0, max = (int)buffers.size() ;j < max @@ -310,7 +310,7 @@ bool test_allocation_deallocation_expand(Allocator &a) } } } - + //Now erase null values from the vector buffers.erase( std::remove(buffers.begin(), buffers.end(), static_cast(0)) , buffers.end()); @@ -349,7 +349,7 @@ bool test_allocation_with_reuse(Allocator &a) std::memset(ptr, 0, size); buffers.push_back(ptr); } - + //Now deallocate all except the latest //Now try to expand to the double of the sizeof_object for(int i = 0, max = (int)buffers.size() - 1 @@ -381,7 +381,7 @@ bool test_allocation_with_reuse(Allocator &a) } //There is only a single block so deallocate it a.deallocate(ptr); - + if(!a.all_memory_deallocated() || !a.check_sanity()) return false; } @@ -405,7 +405,7 @@ bool test_aligned_allocation(Allocator &a) continue_loop = false; break; } - + if(((std::size_t)ptr & (j - 1)) != 0) return false; a.deallocate(ptr); @@ -441,7 +441,7 @@ bool test_continuous_aligned_allocation(Allocator &a) else{ any_allocated = true; } - + if(((std::size_t)ptr & (j - 1)) != 0) return false; } diff --git a/test/message_queue_test.cpp b/test/message_queue_test.cpp index 08dfc45..f9e7b79 100644 --- a/test/message_queue_test.cpp +++ b/test/message_queue_test.cpp @@ -1,6 +1,6 @@ ////////////////////////////////////////////////////////////////////////////// // -// (C) Copyright Ion Gaztanaga 2004-2011. Distributed under the Boost +// (C) Copyright Ion Gaztanaga 2004-2012. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // diff --git a/test/movable_int.hpp b/test/movable_int.hpp index 528600e..1dce2e3 100644 --- a/test/movable_int.hpp +++ b/test/movable_int.hpp @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////// // -// (C) Copyright Ion Gaztanaga 2006. Distributed under the Boost +// (C) Copyright Ion Gaztanaga 2006-2012. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // @@ -93,7 +93,7 @@ class movable_and_copyable_int movable_and_copyable_int(const movable_and_copyable_int& mmi) : m_int(mmi.m_int) {} - + movable_and_copyable_int &operator= (BOOST_COPY_ASSIGN_REF(movable_and_copyable_int) mi) { this->m_int = mi.m_int; return *this; } @@ -155,7 +155,7 @@ class copyable_int copyable_int(const copyable_int& mmi) : m_int(mmi.m_int) {} - + copyable_int & operator= (const copyable_int &mi) { this->m_int = mi.m_int; return *this; } diff --git a/test/multi_index_test.cpp b/test/multi_index_test.cpp index cebdc78..7c77154 100644 --- a/test/multi_index_test.cpp +++ b/test/multi_index_test.cpp @@ -1,6 +1,6 @@ ////////////////////////////////////////////////////////////////////////////// // -// (C) Copyright Ion Gaztanaga 2006-2011. Distributed under the Boost +// (C) Copyright Ion Gaztanaga 2006-2012. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // diff --git a/test/mutex_test.cpp b/test/mutex_test.cpp index 185a094..e3bd482 100644 --- a/test/mutex_test.cpp +++ b/test/mutex_test.cpp @@ -1,6 +1,6 @@ ////////////////////////////////////////////////////////////////////////////// // -// (C) Copyright Ion Gaztanaga 2004-2011. Distributed under the Boost +// (C) Copyright Ion Gaztanaga 2004-2012. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // diff --git a/test/mutex_test_template.hpp b/test/mutex_test_template.hpp index 6bba872..c41abe3 100644 --- a/test/mutex_test_template.hpp +++ b/test/mutex_test_template.hpp @@ -1,6 +1,6 @@ ////////////////////////////////////////////////////////////////////////////// // -// (C) Copyright Ion Gaztanaga 2004-2011. Distributed under the Boost +// (C) Copyright Ion Gaztanaga 2004-2012. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // @@ -232,7 +232,7 @@ template void test_mutex_lock() { shared_val = 0; - + M mtx; data d1(1); @@ -260,7 +260,7 @@ template void test_mutex_lock_timeout() { shared_val = 0; - + M mtx; int wait_time_s = BOOST_INTERPROCESS_TIMEOUT_WHEN_LOCKING_DURATION_MS / 1000; diff --git a/test/mutex_timeout_test.cpp b/test/mutex_timeout_test.cpp index ea03f35..7dc4df5 100644 --- a/test/mutex_timeout_test.cpp +++ b/test/mutex_timeout_test.cpp @@ -1,6 +1,6 @@ ////////////////////////////////////////////////////////////////////////////// // -// (C) Copyright Ion Gaztanaga 2004-2011. Distributed under the Boost +// (C) Copyright Ion Gaztanaga 2004-2012. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // diff --git a/test/named_allocation_test_template.hpp b/test/named_allocation_test_template.hpp index a821b1a..439e787 100644 --- a/test/named_allocation_test_template.hpp +++ b/test/named_allocation_test_template.hpp @@ -1,6 +1,6 @@ ////////////////////////////////////////////////////////////////////////////// // -// (C) Copyright Ion Gaztanaga 2006. Distributed under the Boost +// (C) Copyright Ion Gaztanaga 2006-2012. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // diff --git a/test/named_condition_test.cpp b/test/named_condition_test.cpp index b7b23b2..c81ff2e 100644 --- a/test/named_condition_test.cpp +++ b/test/named_condition_test.cpp @@ -1,6 +1,6 @@ ////////////////////////////////////////////////////////////////////////////// // -// (C) Copyright Ion Gaztanaga 2004-2011. Distributed under the Boost +// (C) Copyright Ion Gaztanaga 2004-2012. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // @@ -25,7 +25,7 @@ struct condition_deleter std::string name; ~condition_deleter() - { + { if(name.empty()) named_condition::remove(test::add_to_process_id_name("named_condition")); else @@ -167,7 +167,7 @@ struct mutex_deleter std::string name; ~mutex_deleter() - { + { if(name.empty()) named_mutex::remove(test::add_to_process_id_name("named_mutex")); else diff --git a/test/named_construct_test.cpp b/test/named_construct_test.cpp index 81a0a6a..acdd9b7 100644 --- a/test/named_construct_test.cpp +++ b/test/named_construct_test.cpp @@ -1,6 +1,6 @@ ////////////////////////////////////////////////////////////////////////////// // -// (C) Copyright Ion Gaztanaga 2008-2011. Distributed under the Boost +// (C) Copyright Ion Gaztanaga 2008-2012. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // diff --git a/test/named_creation_template.hpp b/test/named_creation_template.hpp index e24cda9..ee34aa6 100644 --- a/test/named_creation_template.hpp +++ b/test/named_creation_template.hpp @@ -1,6 +1,6 @@ ////////////////////////////////////////////////////////////////////////////// // -// (C) Copyright Ion Gaztanaga 2004-2011. Distributed under the Boost +// (C) Copyright Ion Gaztanaga 2004-2012. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // @@ -23,7 +23,7 @@ namespace boost { namespace interprocess { namespace test { template inline void create_then_open_then_open_or_create() -{ +{ try{ //Create it and open it twice NamedResource nresource1(create_only); @@ -38,7 +38,7 @@ inline void create_then_open_then_open_or_create() template inline void open_or_create_then_create() -{ +{ //Create it with open_or_create and try to create it twice NamedResource nresource1(open_or_create); try{ @@ -51,7 +51,7 @@ inline void open_or_create_then_create() template inline void dont_create_and_open() -{ +{ //Try to open it without creating try{ NamedResource nresource1(open_only); diff --git a/test/named_mutex_test.cpp b/test/named_mutex_test.cpp index f818c31..11c7f1c 100644 --- a/test/named_mutex_test.cpp +++ b/test/named_mutex_test.cpp @@ -1,6 +1,6 @@ ////////////////////////////////////////////////////////////////////////////// // -// (C) Copyright Ion Gaztanaga 2004-2011. Distributed under the Boost +// (C) Copyright Ion Gaztanaga 2004-2012. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // diff --git a/test/named_recursive_mutex_test.cpp b/test/named_recursive_mutex_test.cpp index 345b3cb..376c1e3 100644 --- a/test/named_recursive_mutex_test.cpp +++ b/test/named_recursive_mutex_test.cpp @@ -1,6 +1,6 @@ ////////////////////////////////////////////////////////////////////////////// // -// (C) Copyright Ion Gaztanaga 2004-2011. Distributed under the Boost +// (C) Copyright Ion Gaztanaga 2004-2012. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // diff --git a/test/named_semaphore_test.cpp b/test/named_semaphore_test.cpp index 4f6cd5a..c5dc02b 100644 --- a/test/named_semaphore_test.cpp +++ b/test/named_semaphore_test.cpp @@ -1,6 +1,6 @@ ////////////////////////////////////////////////////////////////////////////// // -// (C) Copyright Ion Gaztanaga 2004-2011. Distributed under the Boost +// (C) Copyright Ion Gaztanaga 2004-2012. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // diff --git a/test/named_upgradable_mutex_test.cpp b/test/named_upgradable_mutex_test.cpp index 564294b..c0d2bcd 100644 --- a/test/named_upgradable_mutex_test.cpp +++ b/test/named_upgradable_mutex_test.cpp @@ -1,6 +1,6 @@ ////////////////////////////////////////////////////////////////////////////// // -// (C) Copyright Ion Gaztanaga 2004-2011. Distributed under the Boost +// (C) Copyright Ion Gaztanaga 2004-2012. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // diff --git a/test/node_allocator_test.cpp b/test/node_allocator_test.cpp index ba6052f..4ff7097 100644 --- a/test/node_allocator_test.cpp +++ b/test/node_allocator_test.cpp @@ -1,6 +1,6 @@ ////////////////////////////////////////////////////////////////////////////// // -// (C) Copyright Ion Gaztanaga 2004-2011. Distributed under the Boost +// (C) Copyright Ion Gaztanaga 2004-2012. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // diff --git a/test/node_pool_test.cpp b/test/node_pool_test.cpp index 71c8142..149bd7f 100644 --- a/test/node_pool_test.cpp +++ b/test/node_pool_test.cpp @@ -1,6 +1,6 @@ ////////////////////////////////////////////////////////////////////////////// // -// (C) Copyright Ion Gaztanaga 2007. Distributed under the Boost +// (C) Copyright Ion Gaztanaga 2007-2012. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // diff --git a/test/node_pool_test.hpp b/test/node_pool_test.hpp index ec4cae7..76a87d3 100644 --- a/test/node_pool_test.hpp +++ b/test/node_pool_test.hpp @@ -1,6 +1,6 @@ ////////////////////////////////////////////////////////////////////////////// // -// (C) Copyright Ion Gaztanaga 2007. Distributed under the Boost +// (C) Copyright Ion Gaztanaga 2007-2012. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // @@ -49,7 +49,7 @@ bool test_node_pool::allocate_then_deallocate(NodePool &pool) if((pool.get_real_num_node() - 1) != pool.num_free_nodes()){ return false; } - + //Now deallocate all and check again for(std::size_t i = 0; i < num_alloc; ++i){ pool.deallocate_node(nodes[i]); @@ -59,7 +59,7 @@ bool test_node_pool::allocate_then_deallocate(NodePool &pool) if(4*pool.get_real_num_node() != pool.num_free_nodes()){ return false; } - + pool.deallocate_free_blocks(); if(0 != pool.num_free_nodes()){ @@ -92,7 +92,7 @@ bool test_node_pool::deallocate_free_blocks(NodePool &pool) if(0 != pool.num_free_nodes()){ return false; } - + //Now deallocate one of each block per iteration for(std::size_t node_i = 0; node_i < nodes_per_block; ++node_i){ //Deallocate a node per block @@ -104,7 +104,7 @@ bool test_node_pool::deallocate_free_blocks(NodePool &pool) if(max_blocks*(node_i+1) != pool.num_free_nodes()){ return false; } - + //Now try to deallocate free blocks pool.deallocate_free_blocks(); diff --git a/test/null_index_test.cpp b/test/null_index_test.cpp index 7da718e..e0f2340 100644 --- a/test/null_index_test.cpp +++ b/test/null_index_test.cpp @@ -1,6 +1,6 @@ ////////////////////////////////////////////////////////////////////////////// // -// (C) Copyright Ion Gaztanaga 2005-2011. Distributed under the Boost +// (C) Copyright Ion Gaztanaga 2005-2012. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // diff --git a/test/offset_ptr_test.cpp b/test/offset_ptr_test.cpp index 929dead..3ec3e65 100644 --- a/test/offset_ptr_test.cpp +++ b/test/offset_ptr_test.cpp @@ -1,6 +1,6 @@ ////////////////////////////////////////////////////////////////////////////// // -// (C) Copyright Ion Gaztanaga 2007. Distributed under the Boost +// (C) Copyright Ion Gaztanaga 2007-2012. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // @@ -60,7 +60,7 @@ bool test_types_and_conversions() pcint_t pcint(0); pvint_t pvint(0); pcvint_t pcvint(0); - + pint = &dummy_int; pcint = &dummy_int; pvint = &dummy_int; @@ -153,7 +153,7 @@ bool test_arithmetic() typedef offset_ptr pint_t; const int NumValues = 5; int values[NumValues]; - + //Initialize p pint_t p = values; if(p.get() != values) diff --git a/test/print_container.hpp b/test/print_container.hpp index 0aaffe9..eefc6ba 100644 --- a/test/print_container.hpp +++ b/test/print_container.hpp @@ -1,6 +1,6 @@ ////////////////////////////////////////////////////////////////////////////// // -// (C) Copyright Ion Gaztanaga 2004-2011. Distributed under the Boost +// (C) Copyright Ion Gaztanaga 2004-2012. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // @@ -49,7 +49,7 @@ void PrintContainers(MyShmCont *shmcont, MyStdCont *stdcont) std::cout << *itshm << std::endl; } std::cout << "MyStdCont" << std::endl; - + for(; itstd != itstdend; ++itstd){ std::cout << *itstd << std::endl; } diff --git a/test/private_adaptive_pool_test.cpp b/test/private_adaptive_pool_test.cpp index c93ddfb..55868a0 100644 --- a/test/private_adaptive_pool_test.cpp +++ b/test/private_adaptive_pool_test.cpp @@ -1,6 +1,6 @@ ////////////////////////////////////////////////////////////////////////////// // -// (C) Copyright Ion Gaztanaga 2004-2011. Distributed under the Boost +// (C) Copyright Ion Gaztanaga 2004-2012. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // diff --git a/test/private_node_allocator_test.cpp b/test/private_node_allocator_test.cpp index 5abd662..4690f83 100644 --- a/test/private_node_allocator_test.cpp +++ b/test/private_node_allocator_test.cpp @@ -1,6 +1,6 @@ ////////////////////////////////////////////////////////////////////////////// // -// (C) Copyright Ion Gaztanaga 2004-2011. Distributed under the Boost +// (C) Copyright Ion Gaztanaga 2004-2012. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // diff --git a/test/recursive_mutex_test.cpp b/test/recursive_mutex_test.cpp index eb58f3e..8bec034 100644 --- a/test/recursive_mutex_test.cpp +++ b/test/recursive_mutex_test.cpp @@ -1,6 +1,6 @@ ////////////////////////////////////////////////////////////////////////////// // -// (C) Copyright Ion Gaztanaga 2004-2011. Distributed under the Boost +// (C) Copyright Ion Gaztanaga 2004-2012. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // diff --git a/test/robust_emulation_test.cpp b/test/robust_emulation_test.cpp index 3e2d9e9..98a64e0 100644 --- a/test/robust_emulation_test.cpp +++ b/test/robust_emulation_test.cpp @@ -1,6 +1,6 @@ ////////////////////////////////////////////////////////////////////////////// // -// (C) Copyright Ion Gaztanaga 2010-2011. Distributed under the Boost +// (C) Copyright Ion Gaztanaga 2010-2012. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // diff --git a/test/robust_mutex_test.hpp b/test/robust_mutex_test.hpp index e189984..513dba9 100644 --- a/test/robust_mutex_test.hpp +++ b/test/robust_mutex_test.hpp @@ -1,6 +1,6 @@ ////////////////////////////////////////////////////////////////////////////// // -// (C) Copyright Ion Gaztanaga 2010-2011. Distributed under the Boost +// (C) Copyright Ion Gaztanaga 2010-2012. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // @@ -69,7 +69,7 @@ int robust_mutex_test(int argc, char *argv[]) while(!*go_ahead){ ipcdetail::thread_yield(); } - + std::cout << "... recovering mutex[0]" << std::endl; //First try to recover lock[0], put into consistent //state and relock it again diff --git a/test/robust_recursive_emulation_test.cpp b/test/robust_recursive_emulation_test.cpp index bfda4cc..bc14076 100644 --- a/test/robust_recursive_emulation_test.cpp +++ b/test/robust_recursive_emulation_test.cpp @@ -1,6 +1,6 @@ ////////////////////////////////////////////////////////////////////////////// // -// (C) Copyright Ion Gaztanaga 2010-2011. Distributed under the Boost +// (C) Copyright Ion Gaztanaga 2010-2012. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // diff --git a/test/semaphore_test.cpp b/test/semaphore_test.cpp index ed71ba6..54913ce 100644 --- a/test/semaphore_test.cpp +++ b/test/semaphore_test.cpp @@ -1,6 +1,6 @@ ////////////////////////////////////////////////////////////////////////////// // -// (C) Copyright Ion Gaztanaga 2004-2011. Distributed under the Boost +// (C) Copyright Ion Gaztanaga 2004-2012. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // diff --git a/test/set_test.hpp b/test/set_test.hpp index cdec125..9aec856 100644 --- a/test/set_test.hpp +++ b/test/set_test.hpp @@ -1,6 +1,6 @@ //////////////////////////////////////// // -// (C) Copyright Ion Gaztanaga 2004-2011. Distributed under the Boost +// (C) Copyright Ion Gaztanaga 2004-2012. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // @@ -58,7 +58,7 @@ int set_test () MyStdMultiSet *stdmultiset = new MyStdMultiSet; - //Test construction from a range + //Test construction from a range { IntType aux_vect[50]; for(int i = 0; i < 50; ++i){ @@ -567,7 +567,7 @@ int set_test_copyable () shmmsetcopy = *shmmultiset; stdmsetcopy = *stdmultiset; - + if(!CheckEqualContainers(&shmmsetcopy, &stdmsetcopy)) return 1; } diff --git a/test/sharable_mutex_test_template.hpp b/test/sharable_mutex_test_template.hpp index 66ab056..3fc5e98 100644 --- a/test/sharable_mutex_test_template.hpp +++ b/test/sharable_mutex_test_template.hpp @@ -10,7 +10,7 @@ // It is provided "as is" without express or implied warranty. ////////////////////////////////////////////////////////////////////////////// // -// (C) Copyright Ion Gaztanaga 2005-2011. Distributed under the Boost +// (C) Copyright Ion Gaztanaga 2005-2012. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // diff --git a/test/shared_memory_mapping_test.cpp b/test/shared_memory_mapping_test.cpp index 56b4164..a3b0f10 100644 --- a/test/shared_memory_mapping_test.cpp +++ b/test/shared_memory_mapping_test.cpp @@ -1,6 +1,6 @@ ////////////////////////////////////////////////////////////////////////////// // -// (C) Copyright Ion Gaztanaga 2004-2011. Distributed under the Boost +// (C) Copyright Ion Gaztanaga 2004-2012. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // diff --git a/test/shared_memory_test.cpp b/test/shared_memory_test.cpp index de51516..347ab47 100644 --- a/test/shared_memory_test.cpp +++ b/test/shared_memory_test.cpp @@ -1,6 +1,6 @@ ////////////////////////////////////////////////////////////////////////////// // -// (C) Copyright Ion Gaztanaga 2004-2011. Distributed under the Boost +// (C) Copyright Ion Gaztanaga 2004-2012. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // @@ -62,7 +62,7 @@ int main () test::test_named_creation(); //Create and get name, size and address - { + { shared_memory_object::remove(ShmName); shared_memory shm1(create_only, ShmName, ShmSize, read_write, 0, permissions()); diff --git a/test/shared_ptr_test.cpp b/test/shared_ptr_test.cpp index ff7f215..7ca0942 100644 --- a/test/shared_ptr_test.cpp +++ b/test/shared_ptr_test.cpp @@ -1,7 +1,7 @@ ////////////////////////////////////////////////////////////////////////////// // // (C) Copyright Peter Dimov 2002-2005, 2007. -// (C) Copyright Ion Gaztanaga 2006-2011. +// (C) Copyright Ion Gaztanaga 2006-2012. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) @@ -144,7 +144,7 @@ int string_shared_ptr_vector_insertion_test() { managed_shared_memory shmem(create_only, process_name.c_str(), 20000); - { + { const int NumElements = 100; //Construct the allocator of strings string_allocator_t string_allocator(shmem.get_segment_manager()); @@ -202,7 +202,7 @@ int string_shared_ptr_vector_insertion_test() } //Now fill a vector of weak_ptr-s string_weak_ptr_vector_t my_weakptr_vector(string_weak_ptr_allocator); - my_weakptr_vector.insert(my_weakptr_vector.begin(), NumElements, string_weak_ptr); + my_weakptr_vector.insert(my_weakptr_vector.begin(), NumElements, string_weak_ptr); //The shared count should remain the same if(string_shared_ptr.use_count() != static_cast(my_sharedptr_vector.size()+1)){ return 1; diff --git a/test/slist_test.cpp b/test/slist_test.cpp index db271b3..2f20748 100644 --- a/test/slist_test.cpp +++ b/test/slist_test.cpp @@ -1,6 +1,6 @@ ////////////////////////////////////////////////////////////////////////////// // -// (C) Copyright Ion Gaztanaga 2004-2011. Distributed under the Boost +// (C) Copyright Ion Gaztanaga 2004-2012. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // diff --git a/test/stable_vector_test.cpp b/test/stable_vector_test.cpp index 5af9a1c..cb2a1bb 100644 --- a/test/stable_vector_test.cpp +++ b/test/stable_vector_test.cpp @@ -1,6 +1,6 @@ ////////////////////////////////////////////////////////////////////////////// // -// (C) Copyright Ion Gaztanaga 2004-2011. Distributed under the Boost +// (C) Copyright Ion Gaztanaga 2004-2012. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // diff --git a/test/string_test.cpp b/test/string_test.cpp index 7713329..150caa5 100644 --- a/test/string_test.cpp +++ b/test/string_test.cpp @@ -1,6 +1,6 @@ ////////////////////////////////////////////////////////////////////////////// // -// (C) Copyright Ion Gaztanaga 2004-2011. Distributed under the Boost +// (C) Copyright Ion Gaztanaga 2004-2012. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // @@ -82,7 +82,7 @@ int string_test() (create_only, process_name.c_str(),//segment name 65536); //segment size in bytes - + ShmemAllocatorChar shmallocator (segment.get_segment_manager()); //Initialize vector with a range or iterators and allocator @@ -166,16 +166,16 @@ int string_test() shm_swapper.swap(auxShmString); std_swapper.swap(auxStdString); if(!StringEqual()(auxShmString, auxStdString)) - return 1; + return 1; if(!StringEqual()(shm_swapper, std_swapper)) - return 1; + return 1; shm_swapper.swap(auxShmString); std_swapper.swap(auxStdString); if(!StringEqual()(auxShmString, auxStdString)) - return 1; + return 1; if(!StringEqual()(shm_swapper, std_swapper)) - return 1; + return 1; auxShmString = "LongLongLongLongLongLongLongLongLongLongLongLongLongString"; auxStdString = "LongLongLongLongLongLongLongLongLongLongLongLongLongString"; @@ -184,16 +184,16 @@ int string_test() shm_swapper.swap(auxShmString); std_swapper.swap(auxStdString); if(!StringEqual()(auxShmString, auxStdString)) - return 1; + return 1; if(!StringEqual()(shm_swapper, std_swapper)) - return 1; + return 1; shm_swapper.swap(auxShmString); std_swapper.swap(auxStdString); if(!StringEqual()(auxShmString, auxStdString)) - return 1; + return 1; if(!StringEqual()(shm_swapper, std_swapper)) - return 1; + return 1; //No sort std::sort(shmStringVect->begin(), shmStringVect->end()); diff --git a/test/tree_test.cpp b/test/tree_test.cpp index f11ce78..4619052 100644 --- a/test/tree_test.cpp +++ b/test/tree_test.cpp @@ -1,6 +1,6 @@ ////////////////////////////////////////////////////////////////////////////// // -// (C) Copyright Ion Gaztanaga 2004-2011. Distributed under the Boost +// (C) Copyright Ion Gaztanaga 2004-2012. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // @@ -42,19 +42,19 @@ typedef basic_managed_shared_memory //We will work with narrow characters for shared memory objects //Alias an integer node allocator type -typedef allocator +typedef allocator shmem_allocator_t; -typedef allocator, my_managed_shared_memory::segment_manager> +typedef allocator, my_managed_shared_memory::segment_manager> shmem_node_pair_allocator_t; -typedef allocator +typedef allocator shmem_movable_allocator_t; -typedef allocator, my_managed_shared_memory::segment_manager> +typedef allocator, my_managed_shared_memory::segment_manager> shmem_movable_node_pair_allocator_t; -typedef allocator +typedef allocator shmem_move_copy_allocator_t; -typedef allocator +typedef allocator shmem_copy_allocator_t; -typedef allocator, my_managed_shared_memory::segment_manager> +typedef allocator, my_managed_shared_memory::segment_manager> shmem_move_copy_node_pair_allocator_t; //Alias standard types diff --git a/test/unique_ptr_test.cpp b/test/unique_ptr_test.cpp index 9e57313..b9e24dd 100644 --- a/test/unique_ptr_test.cpp +++ b/test/unique_ptr_test.cpp @@ -1,6 +1,6 @@ ////////////////////////////////////////////////////////////////////////////// // -// (C) Copyright Ion Gaztanaga 2006. Distributed under the Boost +// (C) Copyright Ion Gaztanaga 2006-2012. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // @@ -56,7 +56,7 @@ int main() shared_memory_object::remove(process_name.c_str()); { managed_shared_memory segment(create_only, process_name.c_str(), 10000); - + //Create unique_ptr using dynamic allocation my_unique_ptr_class my_ptr (segment.construct(anonymous_instance)() ,segment.get_deleter()); @@ -83,7 +83,7 @@ int main() assert(my_ptr2.get() == 0); assert(list.begin()->get() == ptr1); assert(list.rbegin()->get() == ptr2); - + //Construct a set and fill typedef std::less set_less_t; MySet set(set_less_t(), segment.get_segment_manager()); diff --git a/test/unordered_test.cpp b/test/unordered_test.cpp index 37343ea..54673d5 100644 --- a/test/unordered_test.cpp +++ b/test/unordered_test.cpp @@ -1,6 +1,6 @@ ////////////////////////////////////////////////////////////////////////////// // -// (C) Copyright Ion Gaztanaga 2007-2011. Distributed under the Boost +// (C) Copyright Ion Gaztanaga 2007-2012. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // diff --git a/test/upgradable_mutex_test.cpp b/test/upgradable_mutex_test.cpp index ef0b708..94bc315 100644 --- a/test/upgradable_mutex_test.cpp +++ b/test/upgradable_mutex_test.cpp @@ -1,6 +1,6 @@ ////////////////////////////////////////////////////////////////////////////// // -// (C) Copyright Ion Gaztanaga 2004-2011. Distributed under the Boost +// (C) Copyright Ion Gaztanaga 2004-2012. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // diff --git a/test/user_buffer_test.cpp b/test/user_buffer_test.cpp index daf63e9..d48be22 100644 --- a/test/user_buffer_test.cpp +++ b/test/user_buffer_test.cpp @@ -1,6 +1,6 @@ ////////////////////////////////////////////////////////////////////////////// // -// (C) Copyright Ion Gaztanaga 2004-2011. Distributed under the Boost +// (C) Copyright Ion Gaztanaga 2004-2012. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // @@ -201,7 +201,7 @@ int main () heaplist->merge(otherheaplist, std::greater()); stdlist->merge(otherstdlist, std::greater()); if(!CheckEqual(userlist, stdlist, heaplist)) return 1; - + user_buffer.destroy(L"MyUserList"); delete stdlist; @@ -212,7 +212,7 @@ int main () } } catch(boost::interprocess::bad_alloc &){} - + MyHeapList::size_type heap_list_size = heaplist->size(); //Copy heap buffer to another @@ -246,7 +246,7 @@ int main () } catch(boost::interprocess::bad_alloc &){} - MyUserList::size_type user_list_size = userlist->size(); + MyUserList::size_type user_list_size = userlist->size(); if(user_list_size <= heap_list_size){ return 1; diff --git a/test/util.hpp b/test/util.hpp index ddd13d4..1580c9f 100644 --- a/test/util.hpp +++ b/test/util.hpp @@ -1,6 +1,6 @@ ////////////////////////////////////////////////////////////////////////////// // -// (C) Copyright Ion Gaztanaga 2004-2011. Distributed under the Boost +// (C) Copyright Ion Gaztanaga 2004-2012. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // diff --git a/test/vector_test.cpp b/test/vector_test.cpp index 0111b32..ed3aed5 100644 --- a/test/vector_test.cpp +++ b/test/vector_test.cpp @@ -1,6 +1,6 @@ ////////////////////////////////////////////////////////////////////////////// // -// (C) Copyright Ion Gaztanaga 2004-2011. Distributed under the Boost +// (C) Copyright Ion Gaztanaga 2004-2012. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // diff --git a/test/vector_test.hpp b/test/vector_test.hpp index 51f1a29..04642c1 100644 --- a/test/vector_test.hpp +++ b/test/vector_test.hpp @@ -1,6 +1,6 @@ ////////////////////////////////////////////////////////////////////////////// // -// (C) Copyright Ion Gaztanaga 2004-2011. Distributed under the Boost +// (C) Copyright Ion Gaztanaga 2004-2012. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // @@ -102,15 +102,15 @@ int vector_test() shmvector->resize(100); stdvector->resize(100); - if(!test::CheckEqualContainers(shmvector, stdvector)) return 1; + if(!test::CheckEqualContainers(shmvector, stdvector)) return 1; shmvector->resize(200); stdvector->resize(200); - if(!test::CheckEqualContainers(shmvector, stdvector)) return 1; + if(!test::CheckEqualContainers(shmvector, stdvector)) return 1; shmvector->resize(0); stdvector->resize(0); - if(!test::CheckEqualContainers(shmvector, stdvector)) return 1; + if(!test::CheckEqualContainers(shmvector, stdvector)) return 1; for(int i = 0; i < max; ++i){ IntType new_int(i); diff --git a/test/vectorstream_test.cpp b/test/vectorstream_test.cpp index 9404ba9..e072ecd 100644 --- a/test/vectorstream_test.cpp +++ b/test/vectorstream_test.cpp @@ -1,6 +1,6 @@ ////////////////////////////////////////////////////////////////////////////// // -// (C) Copyright Ion Gaztanaga 2006. Distributed under the Boost +// (C) Copyright Ion Gaztanaga 2006-2012. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // @@ -37,7 +37,7 @@ using namespace boost::interprocess; static int vectorstream_test() { - { //Test high watermarking initialization + { //Test high watermarking initialization my_stringstream_t my_stringstream; int a (0); my_stringstream << 11; @@ -45,7 +45,7 @@ static int vectorstream_test() if(a != 11) return 1; } - { //Test high watermarking initialization + { //Test high watermarking initialization my_vectorstream_t my_stringstream; int a (0); my_stringstream << 13; @@ -66,7 +66,7 @@ static int vectorstream_test() my_stringstream << "testline: " << i << std::endl; std_stringstream << "testline: " << i << std::endl; } - + if(std::strcmp(my_stringstream.vector().c_str(), std_stringstream.str().c_str()) != 0){ return 1; } @@ -75,10 +75,10 @@ static int vectorstream_test() my_stringstream >> str1 >> number1; std_stringstream >> str2 >> number2; if((str1 != str2) || (str1 != str3)){ - assert(0); return 1; + assert(0); return 1; } if((number1 != number2) || (number1 != i)){ - assert(0); return 1; + assert(0); return 1; } } } @@ -105,10 +105,10 @@ static int vectorstream_test() my_vectorstream >> str1 >> number1; std_stringstream >> str2 >> number2; if((str1 != str2) || (str1 != str3)){ - assert(0); return 1; + assert(0); return 1; } if((number1 != number2) || (number1 != i)){ - assert(0); return 1; + assert(0); return 1; } } } @@ -131,10 +131,10 @@ static int vectorstream_test() my_stringstream >> str1 >> number1; std_stringstream >> str2 >> number2; if((str1 != str2) || (str1 != str3)){ - assert(0); return 1; + assert(0); return 1; } if((number1 != number2) || (number1 != i)){ - assert(0); return 1; + assert(0); return 1; } } } diff --git a/test/windows_shared_memory_mapping_test.cpp b/test/windows_shared_memory_mapping_test.cpp index 0a8cdaa..115dc7f 100644 --- a/test/windows_shared_memory_mapping_test.cpp +++ b/test/windows_shared_memory_mapping_test.cpp @@ -1,6 +1,6 @@ ////////////////////////////////////////////////////////////////////////////// // -// (C) Copyright Ion Gaztanaga 2004-2011. Distributed under the Boost +// (C) Copyright Ion Gaztanaga 2004-2012. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // @@ -48,7 +48,7 @@ int main () ,FileSize - FileSize/2 ,0); - //Fill two regions with a pattern + //Fill two regions with a pattern unsigned char *filler = static_cast(region.get_address()); for(std::size_t i = 0 ;i < FileSize/2 diff --git a/test/windows_shared_memory_test.cpp b/test/windows_shared_memory_test.cpp index 84bae98..f21999d 100644 --- a/test/windows_shared_memory_test.cpp +++ b/test/windows_shared_memory_test.cpp @@ -1,6 +1,6 @@ ////////////////////////////////////////////////////////////////////////////// // -// (C) Copyright Ion Gaztanaga 2004-2011. Distributed under the Boost +// (C) Copyright Ion Gaztanaga 2004-2012. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // diff --git a/test/xsi_shared_memory_mapping_test.cpp b/test/xsi_shared_memory_mapping_test.cpp index 4326d77..e82de82 100644 --- a/test/xsi_shared_memory_mapping_test.cpp +++ b/test/xsi_shared_memory_mapping_test.cpp @@ -1,6 +1,6 @@ ////////////////////////////////////////////////////////////////////////////// // -// (C) Copyright Ion Gaztanaga 2004-2011. Distributed under the Boost +// (C) Copyright Ion Gaztanaga 2004-2012. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // @@ -93,7 +93,7 @@ int main (int argc, char *argv[]) //Create a mapped region mapped_region region (mapping, read_write, 0, FileSize, 0); - //Fill two regions with a pattern + //Fill two regions with a pattern unsigned char *filler = static_cast(region.get_address()); for(std::size_t i = 0; i < FileSize; ++i){ *filler++ = static_cast(i);