From f7f8fbc85c48b003d1e3094a94a3528001977977 Mon Sep 17 00:00:00 2001
From: lichao <lichao@aiotlink.com>
Date: 星期二, 01 六月 2021 15:15:55 +0800
Subject: [PATCH] remove length in ShmSocket ctor, not used.

---
 utest/simple_tests.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/utest/simple_tests.cpp b/utest/simple_tests.cpp
index 6d3c7a2..87933ac 100644
--- a/utest/simple_tests.cpp
+++ b/utest/simple_tests.cpp
@@ -50,12 +50,12 @@
 			typedef ShmObject<s1000> Int;
 			std::string name = std::to_string(id);
 			auto a0 = Avail();
-			Int i1(shm, name);
+			Int i1(shm, name, eOpenOrCreate);
 			auto a1 = Avail();
 			BOOST_CHECK_LT(a1, a0);
 			printf("s1000 size: %ld\n", a0 - a1);
 			i1->a[0] = 5;
-			Int i2(shm, name);
+			Int i2(shm, name, eOpenOrCreate);
 			auto a2 = Avail();
 			BOOST_CHECK_EQUAL(a1, a2);
 			BOOST_CHECK_EQUAL(i1.data(), i2.data());

--
Gitblit v1.8.0