[riot-notifications] [RIOT-OS/RIOT] tests/msg_queue_print: fix test on hw (#16525)

Martine Lenders notifications at github.com
Fri Jun 4 10:31:57 CEST 2021


@miri64 commented on this pull request.



>      child.expect_exact('size: 8 (avail: 8)')
-    child.expect_exact('type: 0x0000, content: 0 ((nil))')
+    if os.environ.get('BOARD') == 'native':
+        child.expect_exact('type: 0x0000, content: 0 ((nil))')
+    else:
+        child.expect_exact('type: 0x0000, content: 0 (0)')

IIRC there are also variants where a NULL pointer can be any variant of `0x0+` depending on the toolchain. Maybe reflect that with a regex?
```suggestion
        child.expect(r'type: 0x0000, content: 0 \((0x)?0+\)')
```

-- 
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/16525#pullrequestreview-676048252
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210604/f3d30074/attachment.htm>


More information about the notifications mailing list