Skip to content

Commit

Permalink
Upstream: Apparently, somehow, we added some newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
lundman committed Jun 9, 2021
1 parent ecb2195 commit da41b22
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test-runner/bin/test-runner.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,12 @@ class timespec(ctypes.Structure):
('tv_nsec', ctypes.c_long)
]


librt = ctypes.CDLL('librt.so.1', use_errno=True)
clock_gettime = librt.clock_gettime
clock_gettime.argtypes = [ctypes.c_int, ctypes.POINTER(timespec)]


def monotonic_time():
t = timespec()
if clock_gettime(CLOCK_MONOTONIC_RAW, ctypes.pointer(t)) != 0:
Expand Down

0 comments on commit da41b22

Please sign in to comment.