Changeset 586383d
- Timestamp:
- Nov 29, 2018, 3:04:58 PM (6 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master
- Children:
- 752ce6d
- Parents:
- 3569326
- Location:
- tests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/utils_tests.h
r3569326 r586383d 20 20 #define PATH_MAX 1024 21 21 #endif 22 23 // This macro is used to pass a string to msvc compiler: since msvc's -D flag 24 // strips the quotes, we define the string without quotes and re-add them with 25 // this macro. 26 27 #define REDEFINESTRING(x) #x 28 #define DEFINEDSTRING(x) REDEFINESTRING(x) 22 29 23 30 #ifndef AUBIO_TESTS_SOURCE … … 135 142 char** argv = (char**)calloc(argc, sizeof(char*)); 136 143 argv[0] = __FILE__; 137 argv[1] = AUBIO_TESTS_SOURCE;144 argv[1] = DEFINEDSTRING(AUBIO_TESTS_SOURCE); 138 145 // check if the file can be read 139 146 if ( check_source(argv[1]) ) return 1; -
tests/wscript_build
r3569326 r586383d 25 25 install_path = None, 26 26 defines = ['AUBIO_UNSTABLE_API=1', 27 'AUBIO_TESTS_SOURCE= \"{}\"'.format(test_sound_abspath)]27 'AUBIO_TESTS_SOURCE={}'.format(test_sound_abspath)] 28 28 )
Note: See TracChangeset
for help on using the changeset viewer.