aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/qtest/meson.build3
-rw-r--r--tests/qtest/npcm7xx_watchdog_timer-test.c5
2 files changed, 5 insertions, 3 deletions
diff --git a/tests/qtest/meson.build b/tests/qtest/meson.build
index fd40136fa9..4293f3b133 100644
--- a/tests/qtest/meson.build
+++ b/tests/qtest/meson.build
@@ -4,11 +4,12 @@ slow_qtests = {
'device-introspect-test' : 720,
'migration-test' : 480,
'npcm7xx_pwm-test': 300,
+ 'npcm7xx_watchdog_timer-test': 120,
'qom-test' : 900,
'test-hmp' : 240,
'pxe-test': 600,
'prom-env-test': 360,
- 'boot-serial-test': 180,
+ 'boot-serial-test': 240,
'qos-test': 120,
}
diff --git a/tests/qtest/npcm7xx_watchdog_timer-test.c b/tests/qtest/npcm7xx_watchdog_timer-test.c
index 4773a673b2..981b853c99 100644
--- a/tests/qtest/npcm7xx_watchdog_timer-test.c
+++ b/tests/qtest/npcm7xx_watchdog_timer-test.c
@@ -172,9 +172,10 @@ static void test_reset_action(gconstpointer watchdog)
static void test_prescaler(gconstpointer watchdog)
{
const Watchdog *wd = watchdog;
+ int inc = g_test_quick() ? 3 : 1;
- for (int wtclk = 0; wtclk < 4; ++wtclk) {
- for (int wtis = 0; wtis < 4; ++wtis) {
+ for (int wtclk = 0; wtclk < 4; wtclk += inc) {
+ for (int wtis = 0; wtis < 4; wtis += inc) {
QTestState *qts = qtest_init("-machine quanta-gsj");
qtest_irq_intercept_in(qts, "/machine/soc/a9mpcore/gic");