projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implement bt_getline
[babeltrace.git]
/
tests
/
lib
/
test_ctf_writer.c
diff --git
a/tests/lib/test_ctf_writer.c
b/tests/lib/test_ctf_writer.c
index 007423d1870c5cbfa39b989fe70828832b86f8d8..2d7c5a500af71d32d03725ca6a09b0ac873a32f6 100644
(file)
--- a/
tests/lib/test_ctf_writer.c
+++ b/
tests/lib/test_ctf_writer.c
@@
-34,6
+34,7
@@
#include <stdio.h>
#include <sys/utsname.h>
#include <babeltrace/compat/limits.h>
#include <stdio.h>
#include <sys/utsname.h>
#include <babeltrace/compat/limits.h>
+#include <babeltrace/compat/stdio.h>
#include <string.h>
#include <assert.h>
#include <sys/wait.h>
#include <string.h>
#include <assert.h>
#include <sys/wait.h>
@@
-160,12
+161,12
@@
result:
rewind(metadata_fp);
/* Output the metadata and parser output as diagnostic */
rewind(metadata_fp);
/* Output the metadata and parser output as diagnostic */
- while (getline(&line, &len, metadata_fp) > 0) {
+ while (
bt_
getline(&line, &len, metadata_fp) > 0) {
fprintf(stderr, "# %s", line);
}
rewind(parser_output_fp);
fprintf(stderr, "# %s", line);
}
rewind(parser_output_fp);
- while (getline(&line, &len, parser_output_fp) > 0) {
+ while (
bt_
getline(&line, &len, parser_output_fp) > 0) {
fprintf(stderr, "# %s", line);
}
fprintf(stderr, "# %s", line);
}
@@
-257,7
+258,7
@@
result:
diag("malloc error");
}
rewind(babeltrace_output_fp);
diag("malloc error");
}
rewind(babeltrace_output_fp);
- while (getline(&line, &len, babeltrace_output_fp) > 0) {
+ while (
bt_
getline(&line, &len, babeltrace_output_fp) > 0) {
diag("%s", line);
}
diag("%s", line);
}
This page took
0.024106 seconds
and
4
git commands to generate.