mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
tests/test_hwtimer_spin +wait: add success
Run 10k times, print success and return. Remove printfs in loops.
This commit is contained in:
parent
b05a3de33f
commit
df47bd38f6
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user