chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update TODO
[elogind.git]
/
src
/
journal
/
test-journal-syslog.c
diff --git
a/src/journal/test-journal-syslog.c
b/src/journal/test-journal-syslog.c
index 895975caa5b52624a0a652a4f810d954f2d8923d..c99ca0654bb732c32648855214477672428eedc9 100644
(file)
--- a/
src/journal/test-journal-syslog.c
+++ b/
src/journal/test-journal-syslog.c
@@
-25,14
+25,14
@@
static void test_syslog_parse_identifier(const char* str,
const char *ident, const char*pid, int ret) {
const char *buf = str;
static void test_syslog_parse_identifier(const char* str,
const char *ident, const char*pid, int ret) {
const char *buf = str;
-
char _cleanup_free_
*ident2 = NULL, *pid2 = NULL;
+
_cleanup_free_ char
*ident2 = NULL, *pid2 = NULL;
int ret2;
ret2 = syslog_parse_identifier(&buf, &ident2, &pid2);
int ret2;
ret2 = syslog_parse_identifier(&buf, &ident2, &pid2);
- assert(ret == ret2);
- assert
(ident==ident2 || streq
(ident, ident2));
- assert
(pid==pid2 || streq
(pid, pid2));
+ assert
_se
(ret == ret2);
+ assert
_se(ident == ident2 || streq_ptr
(ident, ident2));
+ assert
_se(pid == pid2 || streq_ptr
(pid, pid2));
}
int main(void) {
}
int main(void) {