mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-02-20 21:53:59 +08:00
9 lines
236 B
Python
9 lines
236 B
Python
|
|
from openpilot.common.threadname import setthreadname, getthreadname, LINUX
|
||
|
|
|
||
|
|
class TestThreadName:
|
||
|
|
def test_set_get_threadname(self):
|
||
|
|
if LINUX:
|
||
|
|
name = 'TESTING'
|
||
|
|
setthreadname(name)
|
||
|
|
assert name == getthreadname()
|