projects
/
deliverable
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Tests: only call usleep if the test in configured to wait
[deliverable/lttng-tools.git]
/
tests
/
utils
/
testapp
/
gen-ust-events
/
gen-ust-events.c
diff --git
a/tests/utils/testapp/gen-ust-events/gen-ust-events.c
b/tests/utils/testapp/gen-ust-events/gen-ust-events.c
index b0892ce96ec5ba43f41a71c8dd39ac7d0f19979f..f1eb18f52f927cb7ffd6181d11f2d19666768e42 100644
(file)
--- a/
tests/utils/testapp/gen-ust-events/gen-ust-events.c
+++ b/
tests/utils/testapp/gen-ust-events/gen-ust-events.c
@@
-126,7
+126,9
@@
int main(int argc, char **argv)
* that at least one tracepoint has been hit.
*/
create_file(after_first_event_file_path);
- usleep(nr_usec);
+ if (nr_usec) {
+ usleep(nr_usec);
+ }
}
return 0;
This page took
0.026977 seconds
and
5
git commands to generate.