diff options
author | Dan Nicholson <dbn.lists@gmail.com> | 2012-12-11 11:30:13 -0800 |
---|---|---|
committer | Dan Nicholson <dbn.lists@gmail.com> | 2012-12-11 11:59:40 -0800 |
commit | 9cd35c624f24b978cdcae9e24a1ca87bad88bf9e (patch) | |
tree | 7425a5314eb20e3f46daefe3a45a32a61ff16a02 /check | |
parent | 548ba5b223b28370f1ebad51dd7ae298e4be1428 (diff) | |
download | pkg-config-9cd35c624f24b978cdcae9e24a1ca87bad88bf9e.tar.gz |
Enforce that only the first --atleast/exact/max-version option honored
This provides the user with output matching the behavior of the code.
When multiple --atleast/exact/max-version options are supplied, only the
first will be honored.
Diffstat (limited to 'check')
-rwxr-xr-x | check/check-version | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/check/check-version b/check/check-version index e52cf4d..a940c37 100755 --- a/check/check-version +++ b/check/check-version @@ -90,3 +90,8 @@ run_test --print-errors simple \<= $v3 EXPECT_RETURN=0 RESULT="" run_test --print-errors --max-version=$v3 simple + +# mixing version compare testing is not allowed +EXPECT_RETURN=0 +RESULT='Ignoring incompatible output option "--exact-version"' +run_test --atleast-version=1.0.0 --exact-version=1.0.0 simple |