benchmorc: fix file path to test orc file on windows
authorTim-Philipp Müller <tim@centricular.com>
Mon, 20 Jul 2020 23:48:48 +0000 (00:48 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 21 Jul 2020 09:09:11 +0000 (10:09 +0100)
Fix compiler warning on msys2:
enchmorc.c:35:31: error: unknown escape sequence: '\o'

The absolute path returned by current_source_dir()
returns backward slashes, which don't work well when
used as a C string constant. join_paths() will make
it all forward-slashes.

testsuite/benchmorc/meson.build

index 7b99449..4b88a49 100644 (file)
@@ -1,4 +1,4 @@
-bench10_orc_path = meson.current_source_dir() + '/bench10.orc'
+bench10_orc_path = join_paths(meson.current_source_dir(), 'bench10.orc')
 
 executable ('benchmorc', 'benchmorc.c',
             c_args : ['-DORC_TEST_FILENAME="' + bench10_orc_path + '"'],