From c4e58795e77562815b0204d000b774c716826e71 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Sat, 1 Jun 2013 14:09:16 +0300 Subject: [PATCH] Required defaults to true for programs. --- interpreter.py | 2 +- test cases/common/31 find program/meson.build | 4 ++-- test cases/frameworks/5 protocol buffers/meson.build | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/interpreter.py b/interpreter.py index a5a2e7c9d..f492b96d1 100755 --- a/interpreter.py +++ b/interpreter.py @@ -764,7 +764,7 @@ class Interpreter(): def func_find_program(self, node, args, kwargs): self.validate_arguments(args, 1, [str]) - required = kwargs.get('required', False) + required = kwargs.get('required', True) if not isinstance(required, bool): raise InvalidArguments('"required" argument must be a boolean.') exename = args[0] diff --git a/test cases/common/31 find program/meson.build b/test cases/common/31 find program/meson.build index c8a70939f..9dae882dc 100644 --- a/test cases/common/31 find program/meson.build +++ b/test cases/common/31 find program/meson.build @@ -7,9 +7,9 @@ if host.name() == 'windows' # - anything that you might actually need # Because of these reasons we only check that # the program can be found. - cp = find_program('xcopy', required : true) + cp = find_program('xcopy') else - cp = find_program('cp', required : true) + cp = find_program('cp') gen = generator(cp, \ outputs : '@BASENAME@.c', \ arguments : ['@INPUT@', '@OUTPUT@']) diff --git a/test cases/frameworks/5 protocol buffers/meson.build b/test cases/frameworks/5 protocol buffers/meson.build index cbd290493..7a18b25af 100644 --- a/test cases/frameworks/5 protocol buffers/meson.build +++ b/test cases/frameworks/5 protocol buffers/meson.build @@ -1,6 +1,6 @@ project('protocol buffer test', 'cxx') -protoc = find_program('protoc', required : true) +protoc = find_program('protoc') dep = find_dep('protobuf') gen = generator(protoc, \