summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormike-holmes <mike.holmes@linaro.org>2013-09-29 00:24:23 -0400
committermike-holmes <mike.holmes@linaro.org>2013-09-29 00:24:23 -0400
commite9671a414d832d37b16359b6a180c7c306199c55 (patch)
tree438827476b268ac414f3aebdfbeaa59f95b65bc6
parenta905aeb8538b294cb8dd61b7048845ec135062eb (diff)
accept nan and infHEADmaster
-rw-r--r--latency.c20
1 files changed, 18 insertions, 2 deletions
diff --git a/latency.c b/latency.c
index 28f0d95..f70ba7d 100644
--- a/latency.c
+++ b/latency.c
@@ -383,8 +383,24 @@ int main(int argc, char* argv[])
munlockall();
- cout << "test_result:outofrange=" << hot.outofrange << " count " << " fail" << endl;
- cout << "test_result:deadline_missed=" << hot.deadline_missed << " count " << " fail" << endl;
+ cout << "test_result:outofrange=" << hot.outofrange << " count ";
+ if ( hot.outofrange > 0) {
+ cout << " fail";
+ }
+ else {
+ cout << " pass";
+ }
+ cout << endl;
+
+ cout << "test_result:deadline_missed=" << hot.deadline_missed << " count ";
+ if ( hot.deadline_missed > 0) {
+ cout << " fail";
+ }
+ else {
+ cout << " pass";
+ }
+ cout << endl;
+
cout << "test_result:minrange=" << tous(hot.minrange,clockspersec) << " us" << " skip" << endl ;
cout << "test_result:maxrange=" << tous(hot.maxrange,clockspersec) << " us" << " skip" << endl;
cout << "test_result:average=" << tous(runtime * clockspersec / loops,clockspersec) << " us" << " skip" << endl;