Skip to content

Commit 7950812

Browse files
committed
Tests: try to fix CI
1 parent 1239b0f commit 7950812

File tree

8 files changed

+78
-77
lines changed

8 files changed

+78
-77
lines changed

libcxx/test/std/input.output/span.streams/spanbuf/spanbuf.assign/move.pass.cpp

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,16 @@ void test() {
3535
std::span<CharT> sp{arr};
3636

3737
// TODO:
38-
(void)sp;
39-
// // Mode: default
40-
// {
41-
// SpBuf rhsSpBuf{sp};
42-
// SpBuf spBuf = std::move(rhsSpBuf);
43-
// assert(spBuf.span().data() == arr);
44-
// assert(!spBuf.span().empty());
45-
// assert(spBuf.span().size() == 4);
46-
// }
38+
39+
// Mode: default
40+
{
41+
SpBuf rhsSpBuf{sp};
42+
SpBuf spBuf = std::move(rhsSpBuf);
43+
(void)spBuf;
44+
// assert(spBuf.span().data() == arr);
45+
// assert(!spBuf.span().empty());
46+
// assert(spBuf.span().size() == 4);
47+
}
4748
// // Mode: `ios_base::in`
4849
// {
4950
// SpBuf rhsSpBuf{sp, std::ios_base::in};

libcxx/test/std/input.output/span.streams/spanbuf/spanbuf.assign/swap.pass.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,16 @@ void test() {
3434
std::span<CharT> sp{arr};
3535

3636
// TODO:
37-
(void)sp;
38-
// // Mode: default
39-
// {
40-
// SpBuf rhsSpBuf{sp};
41-
// SpBuf spBuf(std::span<CharT>{});
42-
// spBuf.swap(rhsSpBuf);
43-
// assert(spBuf.span().data() == arr);
44-
// assert(!spBuf.span().empty());
45-
// assert(spBuf.span().size() == 4);
46-
// }
37+
38+
// Mode: default
39+
{
40+
SpBuf rhsSpBuf{sp};
41+
SpBuf spBuf(std::span<CharT>{});
42+
spBuf.swap(rhsSpBuf);
43+
// assert(spBuf.span().data() == arr);
44+
// assert(!spBuf.span().empty());
45+
// assert(spBuf.span().size() == 4);
46+
}
4747
// // Mode: `ios_base::in`
4848
// {
4949
// SpBuf rhsSpBuf{sp, std::ios_base::in};

libcxx/test/std/input.output/span.streams/spanbuf/spanbuf.assign/swap_nonmember.pass.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,16 @@ void test() {
3030
std::span<CharT> sp{arr};
3131

3232
// TODO:
33-
(void)sp;
34-
// // Mode: default
35-
// {
36-
// SpBuf rhsSpBuf{sp};
37-
// SpBuf spBuf(std::span<CharT>{});
38-
// std::swap(spBuf, rhsSpBuf);
39-
// assert(spBuf.span().data() == arr);
40-
// assert(!spBuf.span().empty());
41-
// assert(spBuf.span().size() == 4);
42-
// }
33+
34+
// Mode: default
35+
{
36+
SpBuf rhsSpBuf{sp};
37+
SpBuf spBuf(std::span<CharT>{});
38+
std::swap(spBuf, rhsSpBuf);
39+
// assert(spBuf.span().data() == arr);
40+
// assert(!spBuf.span().empty());
41+
// assert(spBuf.span().size() == 4);
42+
}
4343
// // Mode: `ios_base::in`
4444
// {
4545
// SpBuf rhsSpBuf{sp, std::ios_base::in};

libcxx/test/std/input.output/span.streams/spanbuf/spanbuf.members/span.pass.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,16 @@ void test() {
3434
std::span<CharT> sp{arr};
3535

3636
// TODO:
37-
(void)sp;
38-
// // Mode: default
39-
// {
40-
// SpBuf rhsSpBuf{sp};
41-
// SpBuf spBuf(std::span<CharT>{});
42-
// spBuf.swap(rhsSpBuf);
43-
// assert(spBuf.span().data() == arr);
44-
// assert(!spBuf.span().empty());
45-
// assert(spBuf.span().size() == 4);
46-
// }
37+
38+
// Mode: default
39+
{
40+
SpBuf rhsSpBuf{sp};
41+
SpBuf spBuf(std::span<CharT>{});
42+
spBuf.swap(rhsSpBuf);
43+
// assert(spBuf.span().data() == arr);
44+
// assert(!spBuf.span().empty());
45+
// assert(spBuf.span().size() == 4);
46+
}
4747
}
4848

4949
int main(int, char**) {

libcxx/test/std/input.output/span.streams/spanbuf/spanbuf.members/span.span.pass.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,16 @@ void test() {
3535
std::span<CharT> sp{arr};
3636

3737
// TODO:
38-
(void)sp;
38+
3939
// Mode: default
40-
// {
41-
// SpBuf rhsSpBuf{sp};
42-
// SpBuf spBuf(std::span<CharT>{});
43-
// spBuf.swap(rhsSpBuf);
44-
// assert(spBuf.span().data() == arr);
45-
// assert(!spBuf.span().empty());
46-
// assert(spBuf.span().size() == 4);
47-
// }
40+
{
41+
SpBuf rhsSpBuf{sp};
42+
SpBuf spBuf(std::span<CharT>{});
43+
spBuf.swap(rhsSpBuf);
44+
// assert(spBuf.span().data() == arr);
45+
// assert(!spBuf.span().empty());
46+
// assert(spBuf.span().size() == 4);
47+
}
4848
}
4949

5050
int main(int, char**) {

libcxx/test/std/input.output/span.streams/spanbuf/spanbuf.virtuals/seekoff.off_type.seek_dir.open_mode.pass.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,16 @@ void test() {
3838
std::span<CharT> sp{arr};
3939

4040
// TODO:
41-
(void)sp;
42-
// // Mode: default
43-
// {
44-
// SpBuf rhsSpBuf{sp};
45-
// SpBuf spBuf(std::span<CharT>{});
46-
// spBuf.swap(rhsSpBuf);
47-
// assert(spBuf.span().data() == arr);
48-
// assert(!spBuf.span().empty());
49-
// assert(spBuf.span().size() == 4);
50-
// }
41+
42+
// Mode: default
43+
{
44+
SpBuf rhsSpBuf{sp};
45+
SpBuf spBuf(std::span<CharT>{});
46+
spBuf.swap(rhsSpBuf);
47+
// assert(spBuf.span().data() == arr);
48+
// assert(!spBuf.span().empty());
49+
// assert(spBuf.span().size() == 4);
50+
}
5151
}
5252

5353
int main(int, char**) {

libcxx/test/std/input.output/span.streams/spanbuf/spanbuf.virtuals/seekoff.pos_type.open_mode.pass.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,16 @@ void test() {
3434

3535
CharT arr[4];
3636
std::span<CharT> sp{arr};
37-
(void)sp;
38-
// // Mode: default
39-
// {
40-
// SpBuf rhsSpBuf{sp};
41-
// SpBuf spBuf(std::span<CharT>{});
42-
// spBuf.swap(rhsSpBuf);
43-
// assert(spBuf.span().data() == arr);
44-
// assert(!spBuf.span().empty());
45-
// assert(spBuf.span().size() == 4);
46-
// }
37+
38+
// Mode: default
39+
{
40+
SpBuf rhsSpBuf{sp};
41+
SpBuf spBuf(std::span<CharT>{});
42+
spBuf.swap(rhsSpBuf);
43+
// assert(spBuf.span().data() == arr);
44+
// assert(!spBuf.span().empty());
45+
// assert(spBuf.span().size() == 4);
46+
}
4747
}
4848

4949
int main(int, char**) {

libcxx/test/std/input.output/span.streams/spanbuf/spanbuf.virtuals/setbuf.pass.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,16 @@ void test() {
3434
std::span<CharT> sp{arr};
3535

3636
// TODO:
37-
(void)sp;
37+
3838
// Mode: default
39-
// {
40-
// SpBuf rhsSpBuf{sp};
41-
// SpBuf spBuf(std::span<CharT>{});
42-
// spBuf.swap(rhsSpBuf);
43-
// assert(spBuf.span().data() == arr);
44-
// assert(!spBuf.span().empty());
45-
// assert(spBuf.span().size() == 4);
46-
// }
39+
{
40+
SpBuf rhsSpBuf{sp};
41+
SpBuf spBuf(std::span<CharT>{});
42+
spBuf.swap(rhsSpBuf);
43+
// assert(spBuf.span().data() == arr);
44+
// assert(!spBuf.span().empty());
45+
// assert(spBuf.span().size() == 4);
46+
}
4747
}
4848

4949
int main(int, char**) {

0 commit comments

Comments
 (0)