Home
last modified time | relevance | path

Searched refs:unsetenv (Results 1 – 17 of 17) sorted by relevance

/systemd-251/src/test/
Dtest-path-lookup.c22 assert_se(unsetenv("SYSTEMD_UNIT_PATH") == 0); in test_paths_one()
47 assert_se(unsetenv("SYSTEMD_UNIT_PATH") == 0); in TEST()
48 assert_se(unsetenv("XDG_DATA_DIRS") == 0); in TEST()
49 assert_se(unsetenv("XDG_CONFIG_DIRS") == 0); in TEST()
84 assert_se(unsetenv("SYSTEMD_GENERATOR_PATH") == 0); in test_generator_binary_paths_one()
85 assert_se(unsetenv("SYSTEMD_ENVIRONMENT_GENERATOR_PATH") == 0); in test_generator_binary_paths_one()
Dtest-execute.c353 assert_se(unsetenv("VAR1") == 0); in test_exec_execsearchpath_passenvironment()
354 assert_se(unsetenv("VAR2") == 0); in test_exec_execsearchpath_passenvironment()
355 assert_se(unsetenv("VAR3") == 0); in test_exec_execsearchpath_passenvironment()
356 assert_se(unsetenv("VAR4") == 0); in test_exec_execsearchpath_passenvironment()
357 assert_se(unsetenv("VAR5") == 0); in test_exec_execsearchpath_passenvironment()
358 assert_se(unsetenv("PATH") == 0); in test_exec_execsearchpath_passenvironment()
948 assert_se(unsetenv("VAR1") == 0); in test_exec_passenvironment()
949 assert_se(unsetenv("VAR2") == 0); in test_exec_passenvironment()
950 assert_se(unsetenv("VAR3") == 0); in test_exec_passenvironment()
951 assert_se(unsetenv("VAR4") == 0); in test_exec_passenvironment()
[all …]
Dtest-os-util.c55 assert_se(unsetenv("SYSTEMD_OS_RELEASE") == 0); in TEST()
72 assert_se(unsetenv("SYSTEMD_OS_RELEASE") == 0); in TEST()
Dtest-env-util.c109 assert_se(unsetenv("c") == 0); in TEST()
385 assert_se(unsetenv("SYSTEMD_EXEC_PID") >= 0); in TEST()
400 assert_se(unsetenv("SYSTEMD_EXEC_PID") >= 0); in TEST()
Dtest-specifier.c153 assert_se(unsetenv("SYSTEMD_OS_RELEASE") == 0); in TEST()
Dtest-fs-util.c477 assert_se(unsetenv("TMPDIR") >= 0); in TEST()
478 assert_se(unsetenv("TEMP") >= 0); in TEST()
479 assert_se(unsetenv("TMP") >= 0); in TEST()
Dtest-path-util.c217 assert_se(unsetenv("PATH") == 0); in TEST()
445 assert_se(unsetenv("PATH") == 0); in TEST()
/systemd-251/src/libsystemd/sd-daemon/
Dsd-daemon.c37 assert_se(unsetenv("LISTEN_PID") == 0); in unsetenv_all()
38 assert_se(unsetenv("LISTEN_FDS") == 0); in unsetenv_all()
39 assert_se(unsetenv("LISTEN_FDNAMES") == 0); in unsetenv_all()
547 assert_se(unsetenv("NOTIFY_SOCKET") == 0); in sd_pid_notify_with_fds()
671 assert_se(unsetenv("WATCHDOG_USEC") == 0); in sd_watchdog_enabled()
673 assert_se(unsetenv("WATCHDOG_PID") == 0); in sd_watchdog_enabled()
/systemd-251/src/udev/
Dtest-udev-event.c22 assert_se(unsetenv("SYSTEMD_PIDFD") >= 0); in test_event_spawn_core()
Dudevd.c671 assert_se(unsetenv("NOTIFY_SOCKET") == 0); in worker_main()
/systemd-251/src/basic/
Denv-util.c785 return RET_NERRNO(unsetenv(name)); in set_unset_env()
885 if (unsetenv(name) < 0) in getenv_steal_erase()
/systemd-251/src/sysupdate/
Dsysupdate-resource.c289 (void) unsetenv("NOTIFY_SOCKET"); in download_manifest()
Dsysupdate-transfer.c804 (void) unsetenv("NOTIFY_SOCKET"); in run_helper()
/systemd-251/src/libsystemd/sd-event/
Dtest-event.c302 assert_se(unsetenv("SYSTEMD_PIDFD") >= 0); in test_basic_one()
/systemd-251/src/userdb/
Duserdbctl.c1341 assert_se(unsetenv("SYSTEMD_ONLY_USERDB") == 0); in run()
/systemd-251/src/core/
Dload-fragment.c2918 char*** unsetenv = data; in config_parse_unset_environ() local
2930 *unsetenv = strv_free(*unsetenv); in config_parse_unset_environ()
2972 r = strv_extend_strv(unsetenv, n, true); in config_parse_unset_environ()
Dmain.c1415 assert_se(unsetenv("HOME") == 0); in fixup_environment()