[Xenomai-git] Philippe Gerum : testsuite/latency: disable -t1/2 over Mercury
Module: xenomai-3 Branch: next Commit: be70e0e1e3654933b2d8a4bcd60851acf9094855 URL: http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=be70e0e1e3654933b2d8a4bcd60851acf9094855 Author: Philippe Gerum Date: Fri Jul 31 11:38:35 2015 +0200 testsuite/latency: disable -t1/2 over Mercury --- testsuite/latency/latency.c |5 + 1 file changed, 5 insertions(+) diff --git a/testsuite/latency/latency.c b/testsuite/latency/latency.c index bbc4317..9f358d7 100644 --- a/testsuite/latency/latency.c +++ b/testsuite/latency/latency.c @@ -732,6 +732,11 @@ int main(int argc, char *const *argv) if (test_mode < USER_TASK || test_mode > TIMER_HANDLER) error(1, EINVAL, "invalid test mode"); +#ifdef CONFIG_XENO_MERCURY + if (test_mode ! USER_TASK) + error(1, EINVAL, "-t1, -t2 not allowed over Mercury"); +#endif + time(&test_start); histogram_avg = calloc(histogram_size, sizeof(int32_t)); ___ Xenomai-git mailing list Xenomai-git@xenomai.org http://xenomai.org/mailman/listinfo/xenomai-git
[Xenomai-git] Philippe Gerum : testsuite/latency: disable -t1/2 over Mercury
Module: xenomai-3 Branch: next Commit: f7c2f662a7a435ffc32af8eb7f1d7bf574dd12c2 URL: http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=f7c2f662a7a435ffc32af8eb7f1d7bf574dd12c2 Author: Philippe Gerum Date: Fri Jul 31 11:38:35 2015 +0200 testsuite/latency: disable -t1/2 over Mercury --- testsuite/latency/latency.c |5 + 1 file changed, 5 insertions(+) diff --git a/testsuite/latency/latency.c b/testsuite/latency/latency.c index bbc4317..e800361 100644 --- a/testsuite/latency/latency.c +++ b/testsuite/latency/latency.c @@ -732,6 +732,11 @@ int main(int argc, char *const *argv) if (test_mode < USER_TASK || test_mode > TIMER_HANDLER) error(1, EINVAL, "invalid test mode"); +#ifdef CONFIG_XENO_MERCURY + if (test_mode != USER_TASK) + error(1, EINVAL, "-t1, -t2 not allowed over Mercury"); +#endif + time(&test_start); histogram_avg = calloc(histogram_size, sizeof(int32_t)); ___ Xenomai-git mailing list Xenomai-git@xenomai.org http://xenomai.org/mailman/listinfo/xenomai-git
[Xenomai-git] Philippe Gerum : testsuite/latency: disable -t1/2 over Mercury
Module: xenomai-3 Branch: master Commit: f7c2f662a7a435ffc32af8eb7f1d7bf574dd12c2 URL: http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=f7c2f662a7a435ffc32af8eb7f1d7bf574dd12c2 Author: Philippe Gerum Date: Fri Jul 31 11:38:35 2015 +0200 testsuite/latency: disable -t1/2 over Mercury --- testsuite/latency/latency.c |5 + 1 file changed, 5 insertions(+) diff --git a/testsuite/latency/latency.c b/testsuite/latency/latency.c index bbc4317..e800361 100644 --- a/testsuite/latency/latency.c +++ b/testsuite/latency/latency.c @@ -732,6 +732,11 @@ int main(int argc, char *const *argv) if (test_mode < USER_TASK || test_mode > TIMER_HANDLER) error(1, EINVAL, "invalid test mode"); +#ifdef CONFIG_XENO_MERCURY + if (test_mode != USER_TASK) + error(1, EINVAL, "-t1, -t2 not allowed over Mercury"); +#endif + time(&test_start); histogram_avg = calloc(histogram_size, sizeof(int32_t)); ___ Xenomai-git mailing list Xenomai-git@xenomai.org http://xenomai.org/mailman/listinfo/xenomai-git