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 e0236a380e3aa563762354d144ea20096496e0dc..68bb2705ed42c13a7254e754eb981deb899dadbb 100644
(file)
--- a/
tests/lib/test_ctf_writer.c
+++ b/
tests/lib/test_ctf_writer.c
@@
-31,6
+31,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 <unistd.h>
#include <string.h>
#include <assert.h>
#include <unistd.h>
@@
-127,12
+128,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) {
diag("%s", line);
}
rewind(parser_output_fp);
diag("%s", line);
}
rewind(parser_output_fp);
- while (getline(&line, &len, parser_output_fp) > 0) {
+ while (
bt_
getline(&line, &len, parser_output_fp) > 0) {
diag("%s", line);
}
diag("%s", line);
}
@@
-224,7
+225,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.02384 seconds
and
4
git commands to generate.