Skip to content

Commit

Permalink
nco: adding basic configuration test
Browse files Browse the repository at this point in the history
  • Loading branch information
jgaeddert committed May 25, 2024
1 parent 58d08d4 commit e56e4dd
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/nco/tests/nco_crcf_autotest.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,3 +119,21 @@ void autotest_nco_crcf_copy()
nco_crcf_destroy(nco_1);
}

void autotest_nco_config()
{
#if LIQUID_STRICT_EXIT
AUTOTEST_WARN("skipping nco config test with strict exit enabled\n");
return;
#endif
#if !LIQUID_SUPPRESS_ERROR_OUTPUT
fprintf(stderr,"warning: ignore potential errors here; checking for invalid configurations\n");
#endif
//
CONTEND_INEQUALITY(LIQUID_OK, nco_crcf_destroy(NULL));

// create proper NCO object and test configurations
nco_crcf q_nco = nco_crcf_create(LIQUID_NCO);
CONTEND_EQUALITY(LIQUID_OK, nco_crcf_print(q_nco))
nco_crcf_destroy(q_nco);
}

0 comments on commit e56e4dd

Please sign in to comment.