chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rtnl: drop "sd_" prefix from cleanup macros
[elogind.git]
/
src
/
test
/
test-fileio.c
diff --git
a/src/test/test-fileio.c
b/src/test/test-fileio.c
index eb4fbc91d2dcd2dc50463185ccc99d78c78ca1fd..47a0907f9059a35227a12cb57c1b7c0e57dda85b 100644
(file)
--- a/
src/test/test-fileio.c
+++ b/
src/test/test-fileio.c
@@
-41,11
+41,11
@@
static void test_parse_env_file(void) {
char **i;
unsigned k;
char **i;
unsigned k;
- fd = mk
stemp(p
);
+ fd = mk
ostemp_safe(p, O_RDWR|O_CLOEXEC
);
assert_se(fd >= 0);
close(fd);
assert_se(fd >= 0);
close(fd);
- fd = mkostemp
(t,
O_CLOEXEC);
+ fd = mkostemp
_safe(t, O_RDWR|
O_CLOEXEC);
assert_se(fd >= 0);
f = fdopen(fd, "w");
assert_se(fd >= 0);
f = fdopen(fd, "w");
@@
-154,11
+154,11
@@
static void test_parse_multiline_env_file(void) {
_cleanup_strv_free_ char **a = NULL, **b = NULL;
char **i;
_cleanup_strv_free_ char **a = NULL, **b = NULL;
char **i;
- fd = mk
stemp(p
);
+ fd = mk
ostemp_safe(p, O_RDWR|O_CLOEXEC
);
assert_se(fd >= 0);
close(fd);
assert_se(fd >= 0);
close(fd);
- fd = mkostemp
(t,
O_CLOEXEC);
+ fd = mkostemp
_safe(t, O_RDWR|
O_CLOEXEC);
assert_se(fd >= 0);
f = fdopen(fd, "w");
assert_se(fd >= 0);
f = fdopen(fd, "w");
@@
-207,7
+207,7
@@
static void test_executable_is_script(void) {
FILE *f;
char *command;
FILE *f;
char *command;
- fd = mkostemp
(t,
O_CLOEXEC);
+ fd = mkostemp
_safe(t, O_RDWR|
O_CLOEXEC);
assert_se(fd >= 0);
f = fdopen(fd, "w");
assert_se(fd >= 0);
f = fdopen(fd, "w");