Changeset ebb1489 in mainline for uspace/lib/sif/test/sif.c


Ignore:
Timestamp:
2024-10-13T08:23:40Z (8 weeks ago)
Author:
GitHub <noreply@…>
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)
Message:

Merge branch 'HelenOS:master' into topic/packet-capture

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/sif/test/sif.c

    r2a0c827c rebb1489  
    11/*
    2  * Copyright (c) 2018 Jiri Svoboda
     2 * Copyright (c) 2024 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    3636
    3737PCUT_TEST_SUITE(sif);
    38 
    39 /** Test sif_create. */
     38#if 0
     39/** Test sif_new and sif_delete. */
    4040PCUT_TEST(sif_create)
    4141{
    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. */
     52PCUT_TEST(sif_load)
    6653{
    6754        sif_sess_t *sess;
     
    601588        PCUT_ASSERT_INT_EQUALS(0, rv);
    602589}
    603 
     590#endif
    604591PCUT_EXPORT(sif);
Note: See TracChangeset for help on using the changeset viewer.