[Xenomai-git] Philippe Gerum : testsuite/smokey: sched-quota: don' t check for accuracy with --vm

2015-10-06 Thread git repository hosting
Module: xenomai-3
Branch: master
Commit: b725f31644c8c9596fff6eb845f863c09b43a69f
URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=b725f31644c8c9596fff6eb845f863c09b43a69f

Author: Philippe Gerum 
Date:   Wed Aug 26 17:14:16 2015 +0200

testsuite/smokey: sched-quota: don't check for accuracy with --vm

---

 testsuite/smokey/sched-quota/sched-quota.c |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testsuite/smokey/sched-quota/sched-quota.c 
b/testsuite/smokey/sched-quota/sched-quota.c
index 574f971..10ecfad 100644
--- a/testsuite/smokey/sched-quota/sched-quota.c
+++ b/testsuite/smokey/sched-quota/sched-quota.c
@@ -327,7 +327,7 @@ static int run_sched_quota(struct smokey_test *t, int argc, 
char *const argv[])
smokey_trace("%d thread%s: cap=%d%%, effective=%.1f%%",
 nrthreads, nrthreads > 1 ? "s": "", quota, effective);
 
-   if (fabs(effective - (double)quota) > 0.5) {
+   if (!smokey_on_vm && fabs(effective - (double)quota) > 0.5) {
smokey_warning("out of quota: %.1f%%",
   effective - (double)quota);
return -EPROTO;


___
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://xenomai.org/mailman/listinfo/xenomai-git


[Xenomai-git] Philippe Gerum : testsuite/smokey: sched-quota: don' t check for accuracy with --vm

2015-10-03 Thread git repository hosting
Module: xenomai-3
Branch: arm64
Commit: b725f31644c8c9596fff6eb845f863c09b43a69f
URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=b725f31644c8c9596fff6eb845f863c09b43a69f

Author: Philippe Gerum 
Date:   Wed Aug 26 17:14:16 2015 +0200

testsuite/smokey: sched-quota: don't check for accuracy with --vm

---

 testsuite/smokey/sched-quota/sched-quota.c |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testsuite/smokey/sched-quota/sched-quota.c 
b/testsuite/smokey/sched-quota/sched-quota.c
index 574f971..10ecfad 100644
--- a/testsuite/smokey/sched-quota/sched-quota.c
+++ b/testsuite/smokey/sched-quota/sched-quota.c
@@ -327,7 +327,7 @@ static int run_sched_quota(struct smokey_test *t, int argc, 
char *const argv[])
smokey_trace("%d thread%s: cap=%d%%, effective=%.1f%%",
 nrthreads, nrthreads > 1 ? "s": "", quota, effective);
 
-   if (fabs(effective - (double)quota) > 0.5) {
+   if (!smokey_on_vm && fabs(effective - (double)quota) > 0.5) {
smokey_warning("out of quota: %.1f%%",
   effective - (double)quota);
return -EPROTO;


___
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://xenomai.org/mailman/listinfo/xenomai-git


[Xenomai-git] Philippe Gerum : testsuite/smokey: sched-quota: don' t check for accuracy with --vm

2015-08-26 Thread git repository hosting
Module: xenomai-3
Branch: next
Commit: b725f31644c8c9596fff6eb845f863c09b43a69f
URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=b725f31644c8c9596fff6eb845f863c09b43a69f

Author: Philippe Gerum r...@xenomai.org
Date:   Wed Aug 26 17:14:16 2015 +0200

testsuite/smokey: sched-quota: don't check for accuracy with --vm

---

 testsuite/smokey/sched-quota/sched-quota.c |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testsuite/smokey/sched-quota/sched-quota.c 
b/testsuite/smokey/sched-quota/sched-quota.c
index 574f971..10ecfad 100644
--- a/testsuite/smokey/sched-quota/sched-quota.c
+++ b/testsuite/smokey/sched-quota/sched-quota.c
@@ -327,7 +327,7 @@ static int run_sched_quota(struct smokey_test *t, int argc, 
char *const argv[])
smokey_trace(%d thread%s: cap=%d%%, effective=%.1f%%,
 nrthreads, nrthreads  1 ? s: , quota, effective);
 
-   if (fabs(effective - (double)quota)  0.5) {
+   if (!smokey_on_vm  fabs(effective - (double)quota)  0.5) {
smokey_warning(out of quota: %.1f%%,
   effective - (double)quota);
return -EPROTO;


___
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://xenomai.org/mailman/listinfo/xenomai-git