diff options
author | Larry Knox <lrknox@hdfgroup.org> | 2016-03-08 17:49:38 (GMT) |
---|---|---|
committer | Larry Knox <lrknox@hdfgroup.org> | 2016-03-08 17:49:38 (GMT) |
commit | d380f20a0d4ada972da1fa667e5faa04cf6e2221 (patch) | |
tree | ad20790efc16ff023821337b9b03a71cfba5494f /test/tcheck_version.c | |
parent | 3fabbf45f05855665da16e699e420a756d024a2c (diff) | |
download | hdf5-d380f20a0d4ada972da1fa667e5faa04cf6e2221.zip hdf5-d380f20a0d4ada972da1fa667e5faa04cf6e2221.tar.gz hdf5-d380f20a0d4ada972da1fa667e5faa04cf6e2221.tar.bz2 |
[svn-r29350] Revert h5check_version change to check LT_VERS_XXXX numbers rather than HDF5 library version numbers.
Svn revisions reverted: 29341, 29326
Branch features/h5check_version was created for further development.
Files changed
test/tcheck_version.c
test/testcheck_version.sh.in
src/H5public.h
src/H5.c
config/lt_vers.am
bin/h5vers
Tested with h5committest.new
Diffstat (limited to 'test/tcheck_version.c')
-rw-r--r-- | test/tcheck_version.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/test/tcheck_version.c b/test/tcheck_version.c index 48d5523..a75d642 100644 --- a/test/tcheck_version.c +++ b/test/tcheck_version.c @@ -39,9 +39,9 @@ void parse(int ac, char **av); void abort_intercept (int H5_ATTR_UNUSED sig); /* global variables */ -unsigned interface = LT_VERS_INTERFACE; -unsigned revision = LT_VERS_REVISION; -unsigned age = LT_VERS_AGE; +unsigned major = H5_VERS_MAJOR; +unsigned minor = H5_VERS_MINOR; +unsigned release = H5_VERS_RELEASE; void showhelp(void) @@ -50,9 +50,9 @@ showhelp(void) printf("\t-h\tShow this page and version information\n"); printf("\t-t<vers>: Test by changing (adding 1 to) the <vers> to trigger\n"); printf("\t\t the warning. <vers> can be:\n"); - printf("\t\t\tI for Interface number (%d)\n", LT_VERS_INTERFACE); - printf("\t\t\tA for Age number (%d)\n", LT_VERS_AGE); - printf("\t\t\tR for Revision number (%d)\n", LT_VERS_REVISION); + printf("\t\t\tM for Major version number (%d)\n", H5_VERS_MAJOR); + printf("\t\t\tm for Minor version number (%d)\n", H5_VERS_MINOR); + printf("\t\t\tr for Release number (%d)\n", H5_VERS_RELEASE); } @@ -70,14 +70,14 @@ parse(int ac, char **av) switch(*(++pt)) { case 't': /* option -t */ switch(*(++pt)) { - case 'I': - interface++; + case 'M': + major++; break; - case 'R': - revision++; + case 'm': + minor++; break; - case 'A': - age++; + case 'r': + release++; break; default: fprintf(stderr, "Unknown -v parameter (%s). Aborted.\n", *av); @@ -115,7 +115,7 @@ main(int ac, char **av) { parse(ac, av); HDsignal(SIGABRT, &abort_intercept); - H5check_interface_compatibility(interface, age, revision); + H5check_version(major, minor, release); HDsignal(SIGABRT, SIG_DFL); return 0; } |