@@ -64,7 +64,7 @@ void test_sched_many_move()
64
64
Logging::cout () << " test_body()" << Logging::endl;
65
65
66
66
auto log1 = make_cown<Body>();
67
- auto log2 = cown_ptr <Body>(log1 );
67
+ auto log2 = make_cown <Body>();
68
68
69
69
(when (std::move (log1)) <<
70
70
[=](auto ) { Logging::cout () << " log" << Logging::endl; }) +
@@ -77,7 +77,7 @@ void test_sched_many_move_busy()
77
77
Logging::cout () << " test_body()" << Logging::endl;
78
78
79
79
auto log1 = make_cown<Body>();
80
- auto log2 = cown_ptr <Body>(log1 );
80
+ auto log2 = make_cown <Body>();
81
81
82
82
when (log1) << [=](auto ) { Logging::cout () << " log" << Logging::endl; };
83
83
(when (std::move (log1)) <<
@@ -91,7 +91,7 @@ void test_sched_many_mixed()
91
91
Logging::cout () << " test_body()" << Logging::endl;
92
92
93
93
auto log1 = make_cown<Body>();
94
- auto log2 = cown_ptr <Body>(log1 );
94
+ auto log2 = make_cown <Body>();
95
95
96
96
(when (log1) << [=](auto ) { Logging::cout () << " log" << Logging::endl; }) +
97
97
(when (std::move (log2 )) <<
@@ -103,14 +103,27 @@ void test_sched_many_mixed_busy()
103
103
Logging::cout () << " test_body()" << Logging::endl;
104
104
105
105
auto log1 = make_cown<Body>();
106
- auto log2 = cown_ptr <Body>(log1 );
106
+ auto log2 = make_cown <Body>();
107
107
108
108
when (log1) << [=](auto ) { Logging::cout () << " log" << Logging::endl; };
109
109
(when (log1) << [=](auto ) { Logging::cout () << " log" << Logging::endl; }) +
110
110
(when (std::move (log2 )) <<
111
111
[=](auto ) { Logging::cout () << " log" << Logging::endl; });
112
112
}
113
113
114
+ void test_sched_many_move_same ()
115
+ {
116
+ Logging::cout () << " test_body()" << Logging::endl;
117
+
118
+ auto log1 = make_cown<Body>();
119
+ auto log2 = cown_ptr<Body>(log1);
120
+
121
+ (when (std::move (log1)) <<
122
+ [=](auto ) { Logging::cout () << " log" << Logging::endl; }) +
123
+ (when (std::move (log2 )) <<
124
+ [=](auto ) { Logging::cout () << " log" << Logging::endl; });
125
+ }
126
+
114
127
int main (int argc, char ** argv)
115
128
{
116
129
SystematicTestHarness harness (argc, argv);
@@ -123,6 +136,7 @@ int main(int argc, char** argv)
123
136
harness.run (test_sched_many_move_busy);
124
137
harness.run (test_sched_many_mixed);
125
138
harness.run (test_sched_many_mixed_busy);
139
+ harness.run (test_sched_many_move_same);
126
140
127
141
return 0 ;
128
142
}
0 commit comments