Lines Matching refs:imp
24 _cleanup_(journal_importer_cleanup) JournalImporter imp = JOURNAL_IMPORTER_INIT(-1); in TEST()
29 imp.fd = open(journal_data_path, O_RDONLY|O_CLOEXEC); in TEST()
30 assert_se(imp.fd >= 0); in TEST()
33 r = journal_importer_process_data(&imp); in TEST()
34 while (r == 0 && !journal_importer_eof(&imp)); in TEST()
38 assert_se(!journal_importer_eof(&imp)); in TEST()
40 assert_se(imp.iovw.count == 6); in TEST()
41 assert_iovec_entry(&imp.iovw.iovec[0], "_BOOT_ID=1531fd22ec84429e85ae888b12fadb91"); in TEST()
42 assert_iovec_entry(&imp.iovw.iovec[1], "_TRANSPORT=journal"); in TEST()
43 assert_iovec_entry(&imp.iovw.iovec[2], COREDUMP_PROC_GROUP); in TEST()
44 assert_iovec_entry(&imp.iovw.iovec[3], "COREDUMP_RLIMIT=-1"); in TEST()
45 assert_iovec_entry(&imp.iovw.iovec[4], COREDUMP_PROC_GROUP); in TEST()
46 assert_iovec_entry(&imp.iovw.iovec[5], "_SOURCE_REALTIME_TIMESTAMP=1478389147837945"); in TEST()
49 r = journal_importer_process_data(&imp); in TEST()
51 assert_se(journal_importer_eof(&imp)); in TEST()
55 _cleanup_(journal_importer_cleanup) JournalImporter imp = JOURNAL_IMPORTER_INIT(-1); in TEST()
60 imp.fd = open(journal_data_path, O_RDONLY|O_CLOEXEC); in TEST()
61 assert_se(imp.fd >= 0); in TEST()
64 r = journal_importer_process_data(&imp); in TEST()
65 while (!journal_importer_eof(&imp)); in TEST()
68 assert_se(journal_importer_eof(&imp)); in TEST()