mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
tests/periph_gpio: reduce benchmark iterations
Our MCU's are predictable enough that 100k iterations should suffice.
This commit is contained in:
parent
2f6185ee97
commit
07c70a9cfb
@ -26,7 +26,7 @@
|
||||
#include "benchmark.h"
|
||||
#include "periph/gpio.h"
|
||||
|
||||
#define BENCH_RUNS_DEFAULT (1000UL * 1000)
|
||||
#define BENCH_RUNS_DEFAULT (1000UL * 100)
|
||||
|
||||
#ifdef MODULE_PERIPH_GPIO_IRQ
|
||||
static void cb(void *arg)
|
||||
|
@ -11,8 +11,6 @@ import os
|
||||
from testrunner import run
|
||||
|
||||
|
||||
# On slow platforms, like AVR, this test can take some time to complete.
|
||||
TIMEOUT = 30
|
||||
# Allow setting a specific port to test
|
||||
PORT_UNDER_TEST = int(os.environ.get('PORT_UNDER_TEST') or 0)
|
||||
|
||||
@ -37,4 +35,4 @@ def testfunc(child):
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(run(testfunc, timeout=TIMEOUT))
|
||||
sys.exit(run(testfunc))
|
||||
|
Loading…
Reference in New Issue
Block a user