diff options
author | Dan Nicholson <dbn.lists@gmail.com> | 2012-06-07 05:47:45 -0700 |
---|---|---|
committer | Dan Nicholson <dbn.lists@gmail.com> | 2012-07-11 05:24:23 -0700 |
commit | a077e0243050d4b4abb27c41b449980731c72931 (patch) | |
tree | 2ae6fc3684f55da93010a01a5033b7ba385bf4db /check | |
parent | 6c27d5051ba9d81484edffe334c152a05fa2c6d8 (diff) | |
download | pkg-config-a077e0243050d4b4abb27c41b449980731c72931.tar.gz |
Make check-missing test more explicit with --exists
Currently the check-missing passes the packages on the command line with
no options prior to running through --cflags/--libs, etc. Make this more
explicitly pass --exists since this is a much more common operation
performed from PKG_CHECK_MODULES.
The expected result of 0 when Requires or Requires.private is missing is
a regression from pre-0.24 pkg-config.
Diffstat (limited to 'check')
-rwxr-xr-x | check/check-missing | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/check/check-missing b/check/check-missing index fba43a7..1809c4d 100755 --- a/check/check-missing +++ b/check/check-missing @@ -10,13 +10,19 @@ fi # non-existent package; call should fail and cause no output EXPECT_RETURN=1 RESULT="" -ARGS="pkg-non-existent" +ARGS="--exists pkg-non-existent" +run_test + +# existing package, but with missing Requires +EXPECT_RETURN=0 +RESULT="" +ARGS="--exists missing-requires" run_test # tests below are on an existing package, but with missing Requires.private; # when pkg-config outputs error, the actual error text isn't checked # package exists -ARGS="missing-requires-private" +ARGS="--exists missing-requires-private" EXPECT_RETURN=0 RESULT="" run_test |