Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ endif()
# Check Octave and C compressed waveforms are about the same
add_test(NAME test_OFDM_modem_datac0_compression
COMMAND sh -c "cd ${CMAKE_CURRENT_SOURCE_DIR}/unittest;
./check_comp.sh ${CMAKE_CURRENT_SOURCE_DIR} $PATH:${CMAKE_CURRENT_BINARY_DIR}/src")
./check_comp.sh ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}/src")

# ---------------------------------- ofdm_mod/demod level C modem tests ----------------------------------

Expand Down Expand Up @@ -1251,7 +1251,7 @@ endif(NOT APPLE)
./freedv_data_raw_tx --testframes 10 --bursts 10 FSK_LDPC /dev/zero - |
./ch - - --No -5 --ssbfilt 0 |
./freedv_data_raw_rx --testframes -v FSK_LDPC - /dev/null")
set_tests_properties(test_freedv_data_raw_fsk_ldpc_100 PROPERTIES PASS_REGULAR_EXPRESSION "Frms.: 10")
set_tests_properties(test_freedv_data_raw_fsk_ldpc_100 PROPERTIES PASS_REGULAR_EXPRESSION "Frms.: ( 9|10)")

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These issues show I don't really understand statistics .... sigh

# FSK LDPC 1000 bit/s 2FSK, Fs=40kHz, as different configs can upset acquisition
add_test(NAME test_freedv_data_raw_fsk_ldpc_1k
Expand Down
4 changes: 2 additions & 2 deletions src/ofdm_demod.c
Original file line number Diff line number Diff line change
Expand Up @@ -634,8 +634,6 @@ int main(int argc, char *argv[]) {
f++;
}

ofdm_destroy(ofdm);

if (input_specified == true)
fclose(fin);

Expand Down Expand Up @@ -695,5 +693,7 @@ int main(int argc, char *argv[]) {
fprintf(stderr, "Npre.....: %6d Npost: %5d uw_fails: %2d\n", ofdm->pre, ofdm->post, ofdm->uw_fails);
}

ofdm_destroy(ofdm);

return ret;
}
2 changes: 1 addition & 1 deletion unittest/check_comp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# ../unittest/check_comp.sh ${CODEC2} ${PATH}:${CODEC2}/build_linux/src

CODEC2=$1
PATH=$2
PATH=$2:$PATH
set -x
octave_log=$(mktemp)
ch_log=$(mktemp)
Expand Down