projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tests for the session rotation feature
[lttng-tools.git]
/
tests
/
utils
/
testapp
/
gen-ust-tracef
/
gen-ust-tracef.c
diff --git
a/tests/utils/testapp/gen-ust-tracef/gen-ust-tracef.c
b/tests/utils/testapp/gen-ust-tracef/gen-ust-tracef.c
index 0f70ef0f32134acc4e9aa81f3898a2bab24476cc..971bfd8d16a5f6d82de2481a5657f7a19c6db1b5 100644
(file)
--- a/
tests/utils/testapp/gen-ust-tracef/gen-ust-tracef.c
+++ b/
tests/utils/testapp/gen-ust-tracef/gen-ust-tracef.c
@@
-29,6
+29,7
@@
#include <unistd.h>
#include <lttng/tracef.h>
#include <unistd.h>
#include <lttng/tracef.h>
+#include "signal-helper.h"
const char *str = "test string";
const char *str = "test string";
@@
-54,6
+55,10
@@
int main(int argc, char **argv)
useconds_t nr_usec = 0;
char *tmp_file_path = NULL;
useconds_t nr_usec = 0;
char *tmp_file_path = NULL;
+ if (set_signal_handler()) {
+ return 1;
+ }
+
if (argc >= 2) {
nr_iter = atoi(argv[1]);
}
if (argc >= 2) {
nr_iter = atoi(argv[1]);
}
@@
-78,6
+83,9
@@
int main(int argc, char **argv)
create_file(tmp_file_path);
}
usleep(nr_usec);
create_file(tmp_file_path);
}
usleep(nr_usec);
+ if (should_quit) {
+ break;
+ }
}
return 0;
}
return 0;
This page took
0.024307 seconds
and
4
git commands to generate.