1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

4 Commits

Author SHA1 Message Date
Marian Buschsieweke
eb1279005c
tests: Cleanup access to internal variables
Replace direct accesses to sched_active_thread and sched_active_pid with
the helper functions thread_getpid() and thread_get_active(). This serves
two purposes:

1. It makes accidental writes to those variable from outside core less likely.
2. Casting off the volatile qualifier is now well contained to those two
   functions
2020-08-24 09:08:01 +02:00
Kees Bakker
6d2b624851 tests/rmutex_cpp: refactor the test to avoid having to know the thread IDs
When CDC ACM is used as stdio the first thread in the test may have a
different ID than #3. The test code will now look at the printed thread
information (id, prio) as they are created. This avoids the need for a
table with ID/prio.
2020-06-10 21:08:45 +02:00
Francisco Molina
41e9f06b85 flake8: fix PEP8 W608 invalid escape sequence 2019-11-22 11:47:49 +01:00
Marian Buschsieweke
707bacc1b7
tests/rmutex_cpp: Testing rmutex with C++
Copied test from tests/rmutex, but using C++ instead of C.
2019-10-24 23:08:36 +02:00