[tests] [win] workaround to escape backslashes
authorPaul Brossier <piem@piem.org>
Thu, 29 Nov 2018 14:21:03 +0000 (15:21 +0100)
committerPaul Brossier <piem@piem.org>
Thu, 29 Nov 2018 14:21:03 +0000 (15:21 +0100)
tests/wscript_build

index 6861178..7ae6449 100644 (file)
@@ -9,6 +9,8 @@ programs_sources = ctx.path.ant_glob('src/**/*.c')
 
 test_sound_target = '44100Hz_44100f_sine441_stereo.wav'
 test_sound_abspath = bld.path.get_bld().make_node(test_sound_target)
 
 test_sound_target = '44100Hz_44100f_sine441_stereo.wav'
 test_sound_abspath = bld.path.get_bld().make_node(test_sound_target)
+# workaround to double escape backslash characters on windows
+test_sound_abspath = str(test_sound_abspath).replace('\\', '\\\\')
 
 bld(name='create_tests_source',
     rule='python ${SRC} ${TGT}',
 
 bld(name='create_tests_source',
     rule='python ${SRC} ${TGT}',