summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Kacur <jkacur@redhat.com>2015-08-14 13:04:10 +0100
committerJohn Kacur <jkacur@redhat.com>2015-08-17 17:40:00 +0100
commita1d3737879b3e77b2a995be4f8c366039e24289b (patch)
tree0421f09b8720fef432940e0332137ccafaf6e904
parent6855394943356f01946df3b9161321c15afc2d73 (diff)
downloadrt-tests-a1d3737879b3e77b2a995be4f8c366039e24289b.tar.gz
Fix VERSION in rt-migrate-test
- Change VERSION_STRING to VERSION to get the same version number as the the rest of the suite - Assume that VERSION is defined, instead of replacing it with a nonsensical number - Print the help option in the usage() function Reported-by: DIXLOR <dixlor@gmail.com> Signed-off-by: John Kacur <jkacur@redhat.com>
-rw-r--r--src/rt-migrate-test/rt-migrate-test.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/rt-migrate-test/rt-migrate-test.c b/src/rt-migrate-test/rt-migrate-test.c
index fc6fd81..430e992 100644
--- a/src/rt-migrate-test/rt-migrate-test.c
+++ b/src/rt-migrate-test/rt-migrate-test.c
@@ -47,10 +47,6 @@
#define gettid() syscall(__NR_gettid)
-#ifndef VERSION_STRING
-#define VERSION_STRING 0.3
-#endif
-
int nr_tasks;
int lfd;
@@ -178,7 +174,7 @@ static void usage(char **argv)
p--;
p++;
- printf("%s %1.2f\n", p, VERSION_STRING);
+ printf("%s %1.2f\n", p, VERSION);
printf("Usage:\n"
"%s <options> nr_tasks\n\n"
"-p prio --prio prio base priority to start RT tasks with (2) \n"
@@ -187,6 +183,7 @@ static void usage(char **argv)
"-m time --maxerr time Max allowed error (microsecs)\n"
"-l loops --loops loops Number of iterations to run (50)\n"
"-c --check Stop if lower prio task is quicker than higher (off)\n"
+ "-h --help\n"
" () above are defaults \n",
p);
exit(0);