assert_se(streq16(tail, u"rest"));
}
-TEST(test_hexdump) {
+TEST(hexdump) {
char16_t *hex;
hex = hexdump(NULL, 0);
#include "tests.h"
#include "tmpfile-util.h"
-TEST(test_asynchronous_sync) {
+TEST(asynchronous_sync) {
assert_se(asynchronous_sync(NULL) >= 0);
}
}
}
-TEST(test_parse_auxv) {
+TEST(parse_auxv) {
_cleanup_free_ char *dir = NULL;
_cleanup_close_ int dir_fd = -EBADF;
}
}
-TEST(test_xescape_full) {
+TEST(xescape_full) {
test_xescape_full_one(false);
test_xescape_full_one(true);
}
}
}
-TEST(test_read_virtual_file) {
+TEST(read_virtual_file) {
test_read_virtual_file_one(0);
test_read_virtual_file_one(1);
test_read_virtual_file_one(2);
test_read_virtual_file_one(SIZE_MAX);
}
-TEST(test_fdopen_independent) {
+TEST(fdopen_independent) {
#define TEST_TEXT "this is some random test text we are going to write to a memfd"
_cleanup_close_ int fd = -EBADF;
_cleanup_fclose_ FILE *f = NULL;
in_initrd_force(!in_initrd());
}
-TEST(test_proc_cmdline_given) {
+TEST(proc_cmdline_given) {
assert_se(putenv((char*) "SYSTEMD_PROC_CMDLINE=foo_bar=quux wuff-piep=\"tuet \" rd.zumm space='x y z' miepf=\"uuu\"") == 0);
assert_se(putenv((char*) "SYSTEMD_EFI_OPTIONS=miepf=\"uuu\"") == 0);