diff options
author | David Howells <dhowells@redhat.com> | 2015-12-21 15:22:07 +0000 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2015-12-21 15:28:57 +0000 |
commit | 767a9256af05e98d8d838fba444f175b7273de70 (patch) | |
tree | 1db34cf97da76139b0905726ef6a2fb10fc7ef31 | |
parent | 1ef9e1583d6985935be2dd02851ec67e2ab7bc1d (diff) | |
download | keyutils-767a9256af05e98d8d838fba444f175b7273de70.tar.gz |
TEST: version_less_than() must compare releases if version same
If the version parts of two x.y.z-r version strings are the same,
version_less_than() must compare the release parts rather than defaulting
to whatever the last return value happened to be.
This can be tested with this:
sh ./vercmp.sh 2.6.32-589.el6 2.6.32-592.el6.ppc64
Reversing the parameters should flip the output indication rather than
leaving it the same.
Signed-off-by: David Howells <dhowells@redhat.com>
-rw-r--r-- | tests/version.inc.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/version.inc.sh b/tests/version.inc.sh index 4155296..3c1b802 100644 --- a/tests/version.inc.sh +++ b/tests/version.inc.sh @@ -62,6 +62,7 @@ function version_less_than () __version_less_than_dot "$a_version" "$b_version" fi fi + __version_less_than_dot "$a_release" "$b_release" else __version_less_than_dot "$a_version" "$b_version" fi |