projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tests: Make test_per_application_leaks more robust
[lttng-tools.git]
/
tests
/
utils
/
utils.cpp
diff --git
a/tests/utils/utils.cpp
b/tests/utils/utils.cpp
index 4ec36f1145b79b0e02fbc4e217f2e562747dabf7..fbf0019cb713f43d08ced60a39553a9e770dce50 100644
(file)
--- a/
tests/utils/utils.cpp
+++ b/
tests/utils/utils.cpp
@@
-22,7
+22,7
@@
#include <sys/types.h>
#include <unistd.h>
#include <sys/types.h>
#include <unistd.h>
-
static inline
int64_t elapsed_time_ns(struct timespec *t1, struct timespec *t2)
+int64_t elapsed_time_ns(struct timespec *t1, struct timespec *t2)
{
struct timespec delta;
{
struct timespec delta;
@@
-99,7
+99,7
@@
int wait_on_file(const char *path)
for (;;) {
ret = stat(path, &buf);
if (ret == -1 && errno == ENOENT) {
for (;;) {
ret = stat(path, &buf);
if (ret == -1 && errno == ENOENT) {
- ret = poll(
NULL
, 0, 10); /* 10 ms delay */
+ ret = poll(
nullptr
, 0, 10); /* 10 ms delay */
/* Should return 0 everytime */
if (ret) {
if (ret < 0) {
/* Should return 0 everytime */
if (ret) {
if (ret < 0) {
This page took
0.0235 seconds
and
4
git commands to generate.