Merge pull request #1139 from LudwigOrtmann/test_hwtimer_success

tests/test_hwtimer_spin +wait: add success
This commit is contained in:
Ludwig Ortmann 2014-05-13 11:19:43 +02:00
commit 8c914fd791
2 changed files with 6 additions and 4 deletions

View File

@ -31,10 +31,11 @@ int main(void)
{
puts("This is just a functionality test for hwtimer_spin.");
while (1) {
for (unsigned long r = 10000; r > 0; r--) {
for (unsigned long i = 6; i > 0; i--) {
printf("wait %lu\n", i);
hwtimer_wait(i);
}
}
puts("success");
return 0;
}

View File

@ -32,10 +32,11 @@ int main(void)
puts("This is a regression test for a race condition in hwtimer_wait.");
puts("When the race condition is hit, the timer will wait for a very very long time...");
while (1) {
for (unsigned long r = 10000; r > 0; r--) {
for (unsigned long i = 256; i; i = i >> 1) {
printf("wait %lu\n", i);
hwtimer_wait(i);
}
}
puts("success");
return 0;
}