@@ -65,17 +65,17 @@ volatile long long_max = LONG_MAX;
65
65
volatile long long_one = 1L ;
66
66
67
67
/**
68
- *
69
68
* @brief Test implementation-defined constants library
70
- * @defgroup libc_api
69
+ * @defgroup libc_api C Library APIs
71
70
* @ingroup all_tests
72
71
* @{
73
72
*
74
73
*/
75
-
74
+ /**
75
+ * @brief Test c library limits
76
+ */
76
77
ZTEST (libc_common , test_limits )
77
78
{
78
-
79
79
zassert_true ((long_max + long_one == LONG_MIN ));
80
80
}
81
81
@@ -84,13 +84,15 @@ static ssize_t foobar(void)
84
84
return -1 ;
85
85
}
86
86
87
+ /**
88
+ * @brief Test C library ssize_t
89
+ */
87
90
ZTEST (libc_common , test_ssize_t )
88
91
{
89
92
zassert_true (foobar () < 0 );
90
93
}
91
94
92
95
/**
93
- *
94
96
* @brief Test boolean types and values library
95
97
*
96
98
*/
@@ -110,7 +112,6 @@ volatile long long_variable;
110
112
volatile size_t size_of_long_variable = sizeof (long_variable );
111
113
112
114
/**
113
- *
114
115
* @brief Test standard type definitions library
115
116
*
116
117
*/
@@ -132,7 +133,6 @@ volatile uint8_t unsigned_byte = 0xff;
132
133
volatile uint32_t unsigned_int = 0xffffff00 ;
133
134
134
135
/**
135
- *
136
136
* @brief Test integer types library
137
137
*
138
138
*/
@@ -157,7 +157,6 @@ ZTEST(libc_common, test_stdint)
157
157
}
158
158
159
159
/**
160
- *
161
160
* @brief Test time_t to make sure it is at least 64 bits
162
161
*
163
162
*/
@@ -179,7 +178,6 @@ ZTEST(libc_common, test_time_t)
179
178
char buffer [BUFSIZE ];
180
179
181
180
/**
182
- *
183
181
* @brief Test string memset
184
182
*
185
183
*/
@@ -199,7 +197,6 @@ ZTEST(libc_common, test_memset)
199
197
}
200
198
201
199
/**
202
- *
203
200
* @brief Test string length function
204
201
*
205
202
* @see strlen(), strnlen().
@@ -216,7 +213,6 @@ ZTEST(libc_common, test_strlen)
216
213
}
217
214
218
215
/**
219
- *
220
216
* @brief Test string compare function
221
217
*
222
218
* @see strcmp(), strncasecmp().
@@ -669,7 +665,7 @@ ZTEST(libc_common, test_str_operate)
669
665
*
670
666
* @brief test strtol function
671
667
*
672
- * @detail in 32bit system:
668
+ * @details in 32bit system:
673
669
* when base is 10, [-2147483648..2147483647]
674
670
* in 64bit system:
675
671
* when base is 10,
@@ -1330,3 +1326,6 @@ ZTEST(libc_common, test_exit)
1330
1326
zassert_equal (a , 0 , "exit failed" );
1331
1327
#endif
1332
1328
}
1329
+ /**
1330
+ * @}
1331
+ */
0 commit comments