Changeset ebb1489 in mainline for uspace/lib/sif/test/sif.c
- Timestamp:
- 2024-10-13T08:23:40Z (8 weeks ago)
- Children:
- 0472cf17
- Parents:
- 2a0c827c (diff), b3b79981 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - git-author:
- boba-buba <120932204+boba-buba@…> (2024-10-13 08:23:40)
- git-committer:
- GitHub <noreply@…> (2024-10-13 08:23:40)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/sif/test/sif.c
r2a0c827c rebb1489 1 1 /* 2 * Copyright (c) 20 18Jiri Svoboda2 * Copyright (c) 2024 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 36 36 37 37 PCUT_TEST_SUITE(sif); 38 39 /** Test sif_ create. */38 #if 0 39 /** Test sif_new and sif_delete. */ 40 40 PCUT_TEST(sif_create) 41 41 { 42 sif_sess_t *sess; 43 errno_t rc; 44 int rv; 45 char *fname; 46 char *p; 47 48 fname = calloc(L_tmpnam, 1); 49 PCUT_ASSERT_NOT_NULL(fname); 50 51 p = tmpnam(fname); 52 PCUT_ASSERT_TRUE(p == fname); 53 54 rc = sif_create(fname, &sess); 55 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 56 57 rc = sif_close(sess); 58 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 59 60 rv = remove(fname); 61 PCUT_ASSERT_INT_EQUALS(0, rv); 62 } 63 64 /** Test sif_open. */ 65 PCUT_TEST(sif_open) 42 sif_doc_t *doc; 43 errno_t rc; 44 45 rc = sif_new(&doc); 46 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 47 48 sif_delete(doc); 49 } 50 51 /** Test sif_load. */ 52 PCUT_TEST(sif_load) 66 53 { 67 54 sif_sess_t *sess; … … 601 588 PCUT_ASSERT_INT_EQUALS(0, rv); 602 589 } 603 590 #endif 604 591 PCUT_EXPORT(sif);
Note:
See TracChangeset
for help on using the changeset viewer.