From b21fd95f737ab96f57c45e15a1d89d5c483daec8 Mon Sep 17 00:00:00 2001 From: James Hilliard Date: Sun, 26 May 2019 12:31:43 -0600 Subject: Add is_disabler function This is useful if one needs to check if a variable is a disabler. Signed-off-by: James Hilliard --- test cases/common/2 cpp/meson.build | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'test cases/common/2 cpp') diff --git a/test cases/common/2 cpp/meson.build b/test cases/common/2 cpp/meson.build index 27c4321ab..23c8e72ea 100644 --- a/test cases/common/2 cpp/meson.build +++ b/test cases/common/2 cpp/meson.build @@ -10,3 +10,13 @@ endif exe = executable('trivialprog', 'trivial.cc', extra_files : 'something.txt') test('runtest', exe) + +has_not_changed = false +if is_disabler(exe) + has_not_changed = true +else + has_not_changed = true +endif +assert(has_not_changed, 'Executable has changed.') + +assert(not is_disabler(exe), 'Executable is a disabler.') -- cgit v1.2.3