[riot-notifications] [RIOT-OS/RIOT] tests/ztimer_periodic: iterate over clocks (#16254)

Francisco notifications at github.com
Tue Jun 1 14:44:04 CEST 2021


@fjmolinas commented on this pull request.



>  
-    ztimer_periodic_init(ZTIMER_MSEC, &t, callback, NULL, INTERVAL);
-    uint32_t last = ztimer_now(ZTIMER_MSEC);
-
-    ztimer_periodic_start(&t);
-
-    if (!ztimer_is_set(ZTIMER_MSEC, &t.timer)) {
-        print_str("Test failed\n");
-        return 1;
-    }
+    for (size_t j = 0; j < ARRAY_SIZE(clocks); j++) {
+        printf("Testing clock: %s\n", _names[j]);
+        ztimer_clock_t *clock = clocks[j];
+        ztimer_periodic_init(clock, &t, callback, clock, _intervals[j]);
+        uint32_t last = ztimer_now(clock);

The situation improved a bit (offset is smaller) but the same BOARD's are still failing... :(

### arduino-uno/failuresummary

Failures during test:
- [tests/ztimer_periodic](https://ci.inria.fr/ci-riot-tribe/job/build-pipeline.jk/267/artifact/atmega256rfr2-xpro/tests/ztimer_periodic/test.failed/*view*/)

### z1/failuresummary

Failures during test:
- [tests/ztimer_periodic](https://ci.inria.fr/ci-riot-tribe/job/build-pipeline.jk/267/artifact/z1/tests/ztimer_periodic/test.failed/*view*/)

### atmega256rfr2-xpro/failuresummary

Failures during test:
- [tests/ztimer_periodic](https://ci.inria.fr/ci-riot-tribe/job/build-pipeline.jk/267/artifact/arduino-uno/tests/ztimer_periodic/test.failed/*view*/)


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/16254#discussion_r643067165
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210601/20c9eebb/attachment-0001.htm>


More information about the notifications mailing list