summaryrefslogtreecommitdiffstats
path: root/test/tcheck_version.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/tcheck_version.c')
-rw-r--r--test/tcheck_version.c26
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;
}