Skip to content

Commit 928e524

Browse files
authored
Merge pull request #376 from drowe67/ms-macos-ctest
Fix macOS ctest failures
2 parents f16e3eb + 3d03d2b commit 928e524

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ endif()
506506
# Check Octave and C compressed waveforms are about the same
507507
add_test(NAME test_OFDM_modem_datac0_compression
508508
COMMAND sh -c "cd ${CMAKE_CURRENT_SOURCE_DIR}/unittest;
509-
./check_comp.sh ${CMAKE_CURRENT_SOURCE_DIR} $PATH:${CMAKE_CURRENT_BINARY_DIR}/src")
509+
./check_comp.sh ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}/src")
510510

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

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

12561256
# FSK LDPC 1000 bit/s 2FSK, Fs=40kHz, as different configs can upset acquisition
12571257
add_test(NAME test_freedv_data_raw_fsk_ldpc_1k

src/ofdm_demod.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -634,8 +634,6 @@ int main(int argc, char *argv[]) {
634634
f++;
635635
}
636636

637-
ofdm_destroy(ofdm);
638-
639637
if (input_specified == true)
640638
fclose(fin);
641639

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

696+
ofdm_destroy(ofdm);
697+
698698
return ret;
699699
}

unittest/check_comp.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# ../unittest/check_comp.sh ${CODEC2} ${PATH}:${CODEC2}/build_linux/src
99

1010
CODEC2=$1
11-
PATH=$2
11+
PATH=$2:$PATH
1212
set -x
1313
octave_log=$(mktemp)
1414
ch_log=$(mktemp)

0 commit comments

Comments
 (0)