/systemd-251/src/test/ |
D | test-string-util.c | 15 assert_se(streq(string_erase(x), "")); in TEST() 18 assert_se(streq(string_erase(x), "")); in TEST() 21 assert_se(streq(string_erase(x), "")); in TEST() 136 assert_se(streq(cellescape(buf, 1, ""), "")); in TEST() 137 assert_se(streq(cellescape(buf, 1, "1"), "")); in TEST() 138 assert_se(streq(cellescape(buf, 1, "12"), "")); in TEST() 140 assert_se(streq(cellescape(buf, 2, ""), "")); in TEST() 141 assert_se(streq(cellescape(buf, 2, "1"), "1")); in TEST() 142 assert_se(streq(cellescape(buf, 2, "12"), ".")); in TEST() 143 assert_se(streq(cellescape(buf, 2, "123"), ".")); in TEST() [all …]
|
D | test-env-util.c | 30 assert_se(streq(d[0], "WALDO=WALDO")); in TEST() 31 assert_se(streq(d[1], "WALDO=")); in TEST() 38 assert_se(streq(strv_env_get(l, "ONE_OR_TWO"), "2")); in TEST() 39 assert_se(streq(strv_env_get(l, "THREE"), "3")); in TEST() 40 assert_se(streq(strv_env_get(l, "FOUR"), "4")); in TEST() 46 assert_se(streq(strv_env_pairs_get(l, "ONE_OR_TWO"), "2")); in TEST() 47 assert_se(streq(strv_env_pairs_get(l, "THREE"), "3")); in TEST() 48 assert_se(streq(strv_env_pairs_get(l, "FOUR"), "4")); in TEST() 49 assert_se(streq(strv_env_pairs_get(l, "FIVE"), "5")); in TEST() 60 assert_se(streq(l[0], "PIEP")); in TEST() [all …]
|
D | test-extract-word.c | 17 assert_se(streq(t, "foobar")); in TEST() 22 assert_se(streq(t, "waldo")); in TEST() 32 assert_se(streq(t, "\"foobar\"")); in TEST() 37 assert_se(streq(t, "\'waldo\'")); in TEST() 47 assert_se(streq(t, "foobar")); in TEST() 52 assert_se(streq(t, "waldo")); in TEST() 62 assert_se(streq(t, "\"")); in TEST() 72 assert_se(streq(t, "\'")); in TEST() 82 assert_se(streq(t, "\'fooo")); in TEST() 88 assert_se(streq(t, "KEY=val")); in TEST() [all …]
|
D | test-strv.c | 114 assert_se(r && streq(r, "ne")); in TEST() 117 assert_se(r && streq(r, "")); in TEST() 120 assert_se(r && streq(r, "one")); in TEST() 129 assert_se(streq(p, "one, two, three")); in TEST() 133 assert_se(streq(q, "one;two;three")); in TEST() 137 assert_se(streq(r, "one two three")); in TEST() 141 assert_se(streq(s, "1,2,3,3")); in TEST() 145 assert_se(streq(t, "one")); in TEST() 149 assert_se(streq(u, "")); in TEST() 153 assert_se(streq(v, ", ")); in TEST() [all …]
|
D | test-format-table.c | 30 assert_se(streq(formatted, in TEST() 51 assert_se(streq(formatted, in TEST() 59 assert_se(streq(formatted, in TEST() 68 assert_se(streq(formatted, in TEST() 78 assert_se(streq(formatted, in TEST() 96 assert_se(streq(formatted, in TEST() 106 assert_se(streq(formatted, in TEST() 119 assert_se(streq(formatted, in TEST() 134 assert_se(streq(formatted, in TEST() 163 assert_se(streq(formatted, in TEST() [all …]
|
D | test-fileio.c | 94 assert_se(streq(*i, a[k++])); in TEST() 128 assert_se(streq(one, "BAR")); in TEST() 129 assert_se(streq(two, "bar")); in TEST() 130 assert_se(streq(three, "333\nxxxx")); in TEST() 131 assert_se(streq(four, "44\\\"44")); in TEST() 132 assert_se(streq(five, "55\"55FIVEcinco")); in TEST() 133 assert_se(streq(six, "seis sechs sis")); in TEST() 134 assert_se(streq(seven, "sevenval#nocomment")); in TEST() 135 assert_se(streq(eight, "eightval #nocomment")); in TEST() 136 assert_se(streq(nine, "nineval")); in TEST() [all …]
|
D | test-path-util.c | 34 assert_se(streq(basename("./aa/bb/../file.da."), "file.da.")); in TEST() 35 assert_se(streq(basename("/aa///.file"), ".file")); in TEST() 36 assert_se(streq(basename("/aa///file..."), "file...")); in TEST() 37 assert_se(streq(basename("file.../"), "")); in TEST() 63 assert_se(streq(p, out)); in test_path_simplify_one() 204 assert_se(streq(basename(p), "sh")); in TEST() 209 assert_se(streq(basename(p), "sh")); in TEST() 221 assert_se(streq(basename(p), "sh")); in TEST() 226 assert_se(streq(basename(p), "sh")); in TEST() 239 assert_se(streq(p, fn)); in TEST() [all …]
|
D | test-hostname-util.c | 53 assert_se(streq(hostname_cleanup(s), "foobar")); in TEST() 55 assert_se(streq(hostname_cleanup(s), "foobar.com")); in TEST() 57 assert_se(streq(hostname_cleanup(s), "foobar.com")); in TEST() 59 assert_se(streq(hostname_cleanup(s), "foo-bar.com")); in TEST() 61 assert_se(streq(hostname_cleanup(s), "foo-bar--com")); in TEST() 63 assert_se(streq(hostname_cleanup(s), "foo-bar.com")); in TEST() 65 assert_se(streq(hostname_cleanup(s), "fooBAR")); in TEST() 67 assert_se(streq(hostname_cleanup(s), "fooBAR.com")); in TEST() 69 assert_se(streq(hostname_cleanup(s), "fooBAR")); in TEST() 71 assert_se(streq(hostname_cleanup(s), "fooBAR.com")); in TEST() [all …]
|
D | test-env-file.c | 68 assert_se(streq(data[0], "a=a")); in TEST() 69 assert_se(streq(data[1], "b=bc")); in TEST() 70 assert_se(streq(data[2], "d=de f")); in TEST() 71 assert_se(streq(data[3], "g=g ")); in TEST() 72 assert_se(streq(data[4], "h=ąęół śćńźżµ")); in TEST() 73 assert_se(streq(data[5], "i=i")); in TEST() 83 assert_se(streq(data[0], "a=a")); in TEST() 102 assert_se(streq(data[0], "HWMON_MODULES=coretemp f71882fg")); in TEST() 103 assert_se(streq(data[1], "MODULE_0=coretemp")); in TEST() 104 assert_se(streq(data[2], "MODULE_1=f71882fg")); in TEST() [all …]
|
D | test-strxcpyx.c | 28 assert_se(streq(target, "12345hey hey heywaldobar")); in TEST() 33 assert_se(streq(target, "12345hey hey heywaldobar")); in TEST() 38 assert_se(streq(target, "12345hey hey heywaldobar")); in TEST() 43 assert_se(streq(target, "12345hey hey heywaldobar")); in TEST() 48 assert_se(streq(target, "12345hey hey heywaldobar")); in TEST() 63 assert_se(streq(target, "space left: 25. foobar")); in TEST() 68 assert_se(streq(target, "space left: 25. foobar42")); in TEST() 73 assert_se(streq(target, "space left: 25. foobar42")); in TEST() 78 assert_se(streq(target, "space left: 25. foobar42")); in TEST() 83 assert_se(streq(target, "space left: 25. foobar42")); in TEST() [all …]
|
D | test-strbuf.c | 35 assert_se(streq(l[0], "")); /* root */ in TEST() 36 assert_se(streq(l[1], "waldo")); in TEST() 37 assert_se(streq(l[2], "foo")); in TEST() 38 assert_se(streq(l[3], "bar")); in TEST() 39 assert_se(streq(l[4], "waldorf")); in TEST() 60 assert_se(streq(sb->buf + a, "waldo")); in TEST() 61 assert_se(streq(sb->buf + b, "foo")); in TEST() 62 assert_se(streq(sb->buf + c, "bar")); in TEST() 63 assert_se(streq(sb->buf + d, "waldo")); in TEST() 64 assert_se(streq(sb->buf + e, "aldo")); in TEST() [all …]
|
D | test-hexdecoct.c | 90 assert_se(streq(delete_chars(answer, WHITESPACE), hex)); in test_unhexmem_one() 118 assert_se(streq(b32, "")); in TEST() 123 assert_se(streq(b32, "CO======")); in TEST() 128 assert_se(streq(b32, "CPNG====")); in TEST() 133 assert_se(streq(b32, "CPNMU===")); in TEST() 138 assert_se(streq(b32, "CPNMUOG=")); in TEST() 143 assert_se(streq(b32, "CPNMUOJ1")); in TEST() 148 assert_se(streq(b32, "CPNMUOJ1E8======")); in TEST() 153 assert_se(streq(b32, "")); in TEST() 158 assert_se(streq(b32, "CO")); in TEST() [all …]
|
D | test-hashmap-plain.c | 37 assert_se(streq(r, "val1")); in TEST() 41 assert_se(streq(r, "val5")); in TEST() 74 assert_se(streq(r, "val1")); in TEST() 76 assert_se(streq(r, "val2")); in TEST() 78 assert_se(streq(r, "val3")); in TEST() 80 assert_se(streq(r, "val4")); in TEST() 113 assert_se(streq(strv[0], "val1")); in TEST() 114 assert_se(streq(strv[1], "val2")); in TEST() 115 assert_se(streq(strv[2], "val3")); in TEST() 116 assert_se(streq(strv[3], "val4")); in TEST() [all …]
|
D | test-install-root.c | 63 assert_se(streq(changes[0].source, "/dev/null")); in TEST() 65 assert_se(streq(changes[0].path, p)); in TEST() 84 assert_se(streq(changes[0].path, p)); in TEST() 91 assert_se(streq(changes[0].source, "/usr/lib/systemd/system/a.service")); in TEST() 93 assert_se(streq(changes[0].path, p)); in TEST() 112 assert_se(streq(changes[0].path, p)); in TEST() 131 assert_se(streq(changes[0].source, "/usr/lib/systemd/system/a.service")); in TEST() 133 assert_se(streq(changes[0].path, p)); in TEST() 148 assert_se(streq(changes[0].path, p)); in TEST() 150 assert_se(streq(changes[1].source, "/usr/lib/systemd/system/a.service")); in TEST() [all …]
|
D | test-process-util.c | 224 … assert_se(streq(personality_to_string(PER_LINUX), architecture_to_string(native_architecture()))); in TEST() 314 assert_se(streq(line, "[testa]")); in TEST() 319 assert_se(streq(line, "\"[testa]\"")); /* quoting is enabled here */ in TEST() 324 assert_se(streq(line, "")); in TEST() 328 assert_se(streq(line, "…")); in TEST() 332 assert_se(streq(line, "[…")); in TEST() 336 assert_se(streq(line, "[t…")); in TEST() 340 assert_se(streq(line, "[te…")); in TEST() 344 assert_se(streq(line, "[tes…")); in TEST() 348 assert_se(streq(line, "[test…")); in TEST() [all …]
|
D | test-gpt.c | 37 if (streq(prefix, "root-") && streq(suffix, "")) in TEST() 39 if (streq(prefix, "root-") && streq(suffix, "-verity")) in TEST() 41 if (streq(prefix, "usr-") && streq(suffix, "")) in TEST() 43 if (streq(prefix, "usr-") && streq(suffix, "-verity")) in TEST()
|
/systemd-251/src/libsystemd/sd-bus/ |
D | test-bus-marshal.c | 41 assert_se(sd_bus_path_encode("/foo/bar", "waldo", &a) >= 0 && streq(a, "/foo/bar/waldo")); in test_bus_path_encode() 43 assert_se(sd_bus_path_decode(a, "/foo/bar", &b) > 0 && streq(b, "waldo")); in test_bus_path_encode() 48 assert_se(sd_bus_path_encode("/foo/bar", "", &c) >= 0 && streq(c, "/foo/bar/_")); in test_bus_path_encode() 49 assert_se(sd_bus_path_decode(c, "/foo/bar", &d) > 0 && streq(d, "")); in test_bus_path_encode() 51 … assert_se(sd_bus_path_encode("/foo/bar", "foo.bar", &e) >= 0 && streq(e, "/foo/bar/foo_2ebar")); in test_bus_path_encode() 52 assert_se(sd_bus_path_decode(e, "/foo/bar", &f) > 0 && streq(f, "foo.bar")); in test_bus_path_encode() 54 assert_se(sd_bus_path_decode("/waldo", "/waldo", &g) > 0 && streq(g, "")); in test_bus_path_encode() 91 assert_se(streq(t, b)); in test_bus_label_escape_one() 94 assert_se(streq(a, x)); in test_bus_label_escape_one() 97 assert_se(streq(a, y)); in test_bus_label_escape_one() [all …]
|
D | test-bus-error.c | 24 assert_se(streq(error.name, SD_BUS_ERROR_NOT_SUPPORTED)); in TEST() 25 assert_se(streq(error.message, "xxx")); in TEST() 47 assert_se(streq(error.name, SD_BUS_ERROR_FILE_NOT_FOUND)); in TEST() 48 assert_se(streq(error.message, "yyy -1")); in TEST() 59 assert_se(streq(error.name, second.name)); in TEST() 60 assert_se(streq(error.message, second.message)); in TEST() 73 assert_se(streq(const_error.name, second.name)); in TEST() 74 assert_se(streq(const_error.message, second.message)); in TEST() 84 assert_se(streq(temporarily_const_error.name, second.name)); in TEST() 85 assert_se(streq(temporarily_const_error.message, second.message)); in TEST() [all …]
|
/systemd-251/src/core/ |
D | dbus-socket.c | 182 if (streq(name, "Accept")) in bus_socket_set_transient_property() 185 if (streq(name, "FlushPending")) in bus_socket_set_transient_property() 188 if (streq(name, "Writable")) in bus_socket_set_transient_property() 191 if (streq(name, "KeepAlive")) in bus_socket_set_transient_property() 194 if (streq(name, "NoDelay")) in bus_socket_set_transient_property() 197 if (streq(name, "FreeBind")) in bus_socket_set_transient_property() 200 if (streq(name, "Transparent")) in bus_socket_set_transient_property() 203 if (streq(name, "Broadcast")) in bus_socket_set_transient_property() 206 if (streq(name, "PassCredentials")) in bus_socket_set_transient_property() 209 if (streq(name, "PassSecurity")) in bus_socket_set_transient_property() [all …]
|
D | dbus-execute.c | 645 if (streq(property, "StandardInputFileDescriptorName")) in property_get_stdio_fdname() 647 else if (streq(property, "StandardOutputFileDescriptorName")) in property_get_stdio_fdname() 650 assert(streq(property, "StandardErrorFileDescriptorName")); in property_get_stdio_fdname() 847 if (sc->encrypted != streq(property, "SetCredentialEncrypted")) in property_get_set_credential() 894 if (lc->encrypted != streq(property, "LoadCredentialEncrypted")) in property_get_load_credential() 1676 if (streq(name, "User")) in bus_exec_context_set_transient_property() 1679 if (streq(name, "Group")) in bus_exec_context_set_transient_property() 1682 if (streq(name, "TTYPath")) in bus_exec_context_set_transient_property() 1685 if (streq(name, "RootImage")) in bus_exec_context_set_transient_property() 1688 if (streq(name, "RootImageOptions")) { in bus_exec_context_set_transient_property() [all …]
|
D | dbus-service.c | 397 if (streq(name, "PermissionsStartOnly")) in bus_service_set_transient_property() 400 if (streq(name, "RootDirectoryStartOnly")) in bus_service_set_transient_property() 403 if (streq(name, "RemainAfterExit")) in bus_service_set_transient_property() 406 if (streq(name, "GuessMainPID")) in bus_service_set_transient_property() 409 if (streq(name, "Type")) in bus_service_set_transient_property() 412 if (streq(name, "ExitType")) in bus_service_set_transient_property() 415 if (streq(name, "OOMPolicy")) in bus_service_set_transient_property() 418 if (streq(name, "RestartUSec")) in bus_service_set_transient_property() 421 if (streq(name, "TimeoutStartUSec")) { in bus_service_set_transient_property() 429 if (streq(name, "TimeoutStopUSec")) in bus_service_set_transient_property() [all …]
|
/systemd-251/src/locale/ |
D | test-keymap-util.c | 19 assert_se(streq(ans, "csb:pl")); in TEST() 22 assert_se(streq(ans2, "szl:pl")); in TEST() 39 assert_se(streq(ans, "pl")); in TEST() 42 assert_se(streq(ans2, "pl-dvorak")); in TEST() 55 assert_se(streq(ans, "pl2")); in TEST() 59 assert_se(streq(ans, "pl2")); in TEST() 82 assert_se(streq(c.x11_layout, "es")); in TEST() 89 assert_se(streq(c.x11_layout, "es")); in TEST() 90 assert_se(streq(c.x11_variant, "dvorak")); in TEST() 96 assert_se(streq(c.x11_layout, "fr")); in TEST() [all …]
|
/systemd-251/src/systemctl/ |
D | systemctl-enable.c | 92 if (streq(verb, "disable")) { in verb_enable() 98 if (streq(verb, "link")) { in verb_enable() 108 if (streq(verb, "enable")) { in verb_enable() 111 } else if (streq(verb, "disable")) in verb_enable() 113 else if (streq(verb, "reenable")) { in verb_enable() 116 } else if (streq(verb, "link")) in verb_enable() 118 else if (streq(verb, "preset")) in verb_enable() 120 else if (streq(verb, "mask")) in verb_enable() 122 else if (streq(verb, "unmask")) in verb_enable() 124 else if (streq(verb, "revert")) in verb_enable() [all …]
|
/systemd-251/src/udev/ |
D | udev-builtin-blkid.c | 34 if (streq(name, "TYPE")) { in print_property() 37 } else if (streq(name, "USAGE")) { in print_property() 40 } else if (streq(name, "VERSION")) { in print_property() 43 } else if (streq(name, "UUID")) { in print_property() 49 } else if (streq(name, "UUID_SUB")) { in print_property() 55 } else if (streq(name, "LABEL")) { in print_property() 61 } else if (streq(name, "PTTYPE")) { in print_property() 64 } else if (streq(name, "PTUUID")) { in print_property() 67 } else if (streq(name, "PART_ENTRY_NAME")) { in print_property() 71 } else if (streq(name, "PART_ENTRY_TYPE")) { in print_property() [all …]
|
/systemd-251/src/shared/ |
D | bus-wait-for-jobs.c | 198 if (streq(result, explanations[i].result)) in log_job_error_with_service_result() 237 if (streq(d->result, "canceled")) in check_wait_response() 239 else if (streq(d->result, "timeout")) in check_wait_response() 241 else if (streq(d->result, "dependency")) in check_wait_response() 243 else if (streq(d->result, "invalid")) in check_wait_response() 245 else if (streq(d->result, "assert")) in check_wait_response() 247 else if (streq(d->result, "unsupported")) in check_wait_response() 249 else if (streq(d->result, "collected")) in check_wait_response() 251 else if (streq(d->result, "once")) in check_wait_response() 271 else if (streq(d->result, "timeout")) in check_wait_response() [all …]
|