Changes in uspace/lib/c/test/capa.c [c24b0dcb:c111da2] in mainline
- File:
-
- 1 edited
-
uspace/lib/c/test/capa.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/test/capa.c
rc24b0dcb rc111da2 1 1 /* 2 * Copyright (c) 2025 Jiri Svoboda 2 3 * Copyright (c) 2019 Matthieu Riolo 3 4 * All rights reserved. … … 285 286 } 286 287 288 PCUT_TEST(capa_blocks_format) 289 { 290 errno_t rc; 291 char *str; 292 293 rc = capa_blocks_format(42, 1, &str); 294 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 295 PCUT_ASSERT_STR_EQUALS("42 B", str); 296 free(str); 297 } 298 299 PCUT_TEST(capa_blocks_format_buf) 300 { 301 char str[CAPA_BLOCKS_BUFSIZE]; 302 303 capa_blocks_format_buf(42, 1, str, sizeof(str)); 304 PCUT_ASSERT_STR_EQUALS("42 B", str); 305 } 306 287 307 PCUT_EXPORT(capa);
Note:
See TracChangeset
for help on using the changeset viewer.
