projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tests: refuse to run test suite if lttng processes are present
[lttng-tools.git]
/
tests
/
utils
/
utils.c
diff --git
a/tests/utils/utils.c
b/tests/utils/utils.c
index 7aa8667d4f4520891d4b5d013ae752641897dde8..0b9655247e81ba30604b88891e352ed553e960a5 100644
(file)
--- a/
tests/utils/utils.c
+++ b/
tests/utils/utils.c
@@
-17,14
+17,12
@@
#include <stdint.h>
#include <common/compat/time.h>
#include <stdint.h>
#include <common/compat/time.h>
+#include <common/time.h>
#include <assert.h>
#include <unistd.h>
#include <stdio.h>
#include <errno.h>
#include <assert.h>
#include <unistd.h>
#include <stdio.h>
#include <errno.h>
-#define NSEC_PER_SEC 1000000000ULL
-#define NSEC_PER_USEC 1000ULL
-
static inline
int64_t elapsed_time_ns(struct timespec *t1, struct timespec *t2)
{
static inline
int64_t elapsed_time_ns(struct timespec *t1, struct timespec *t2)
{
@@
-57,7
+55,7
@@
int usleep_safe(useconds_t usec)
goto end;
}
goto end;
}
- ret = clock_gettime(CLOCK_MONOTONIC, &t2);
+ ret =
lttng_
clock_gettime(CLOCK_MONOTONIC, &t2);
if (ret) {
perror("clock_gettime");
goto end;
if (ret) {
perror("clock_gettime");
goto end;
This page took
0.025109 seconds
and
4
git commands to generate.