From 86c45f0422e375373407e965f68d0bd4984d547c Mon Sep 17 00:00:00 2001 From: Dan Nicholson Date: Tue, 11 Dec 2012 11:47:44 -0800 Subject: Fix handling of --print/silence-errors for all output options The intention was that errors would be printed for all output options besides --exists and --atleast/exact/max-version, which are intended to operate silently. Since want_exists is always set for these latter options, we can simply use that as the condition and catch all other output options automatically. Freedesktop #54390 (https://bugs.freedesktop.org/show_bug.cgi?id=54390) --- check/check-debug | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'check') diff --git a/check/check-debug b/check/check-debug index 507a689..8556378 100755 --- a/check/check-debug +++ b/check/check-debug @@ -11,12 +11,12 @@ RESULT="PKG_CONFIG_DEBUG_SPEW variable enabling debug spew Adding directory '.' from PKG_CONFIG_PATH Global variable definition 'pc_sysrootdir' = '/' Global variable definition 'pc_top_builddir' = '\$(top_builddir)' -Error printing enabled by default due to use of --version, --libs, --cflags, --libs-only-l, --libs-only-L, --libs-only-other, --cflags-only-I, --cflags-only-other or --list. Value of --silence-errors: 0 +Error printing enabled by default due to use of output options besides --exists or --atleast/exact/max-version. Value of --silence-errors: 0 Error printing enabled $PACKAGE_VERSION" PKG_CONFIG_DEBUG_SPEW=1 run_test --version -RESULT="Error printing enabled by default due to use of --version, --libs, --cflags, --libs-only-l, --libs-only-L, --libs-only-other, --cflags-only-I, --cflags-only-other or --list. Value of --silence-errors: 0 +RESULT="Error printing enabled by default due to use of output options besides --exists or --atleast/exact/max-version. Value of --silence-errors: 0 Error printing enabled $PACKAGE_VERSION" run_test --debug --version -- cgit v1.2.1