Skip to content

Commit ce384be

Browse files
committed
Add uints
1 parent 6e3b786 commit ce384be

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

src/ystdlib/wrapped_facade_headers/sys/types.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@
2525
#include <sys/_types/_key_t.h>
2626
#include <sys/_types/_useconds_t.h>
2727
#include <sys/_types/_suseconds_t.h>
28+
#include <sys/_types/_u_int8_t.h>
29+
#include <sys/_types/_u_int16_t.h>
30+
#include <sys/_types/_u_int32_t.h>
31+
#include <sys/_types/_u_int64_t.h>
2832

2933
// For off64_t
3034
#include <sys/dtrace.h>

src/ystdlib/wrapped_facade_headers/test/test_sys_types.cpp

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,4 +136,24 @@ TEST_CASE("test_sys_types_suseconds_t", "[wrapped_facade_headers][sys_types][sus
136136
suseconds_t const i{0};
137137
REQUIRE(0 == i);
138138
}
139+
140+
TEST_CASE("test_sys_types_u_int8_t", "[wrapped_facade_headers][sys_types][u_int8_t]") {
141+
u_int8_t const i{0};
142+
REQUIRE(0 == i);
143+
}
144+
145+
TEST_CASE("test_sys_types_u_int16_t", "[wrapped_facade_headers][sys_types][u_int16_t]") {
146+
u_int16_t const i{0};
147+
REQUIRE(0 == i);
148+
}
149+
150+
TEST_CASE("test_sys_types_u_int32_t", "[wrapped_facade_headers][sys_types][u_int32_t]") {
151+
u_int32_t const i{0};
152+
REQUIRE(0 == i);
153+
}
154+
155+
TEST_CASE("test_sys_types_u_int64_t", "[wrapped_facade_headers][sys_types][u_int64_t]") {
156+
u_int64_t const i{0};
157+
REQUIRE(0 == i);
158+
}
139159
} // namespace ystdlib::wrapped_facade_headers::test

0 commit comments

Comments
 (0)