tests: Make sure chmod is used only when possible

Fixes: fa803c7e
fix-win-build-tests-feature
pal1000 2022-08-21 18:36:05 +03:00
parent 9a3794cd02
commit b6ffebc3aa
1 changed files with 1 additions and 1 deletions

View File

@ -19,5 +19,5 @@ tests = [
# yuck
foreach test : tests
test_file = configure_file(input: test + '.sh', output: test, copy: true)
run_command('chmod', '755', test_file, check : true)
run_command(find_program('chmod', required : false, disabler : true), '755', test_file, check : true)
endforeach