]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: check pam warning message 31032/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 21 Jan 2024 04:14:15 +0000 (13:14 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 1 Feb 2024 09:00:54 +0000 (18:00 +0900)
src/shared/pam-util.c
test/units/end.sh

index fe58203e2739ea14d1a806d2c4170897f7de47f4..0e24af450d924c0b4cebed1fc2e396ba255d8675 100644 (file)
@@ -95,6 +95,7 @@ static void pam_bus_data_destroy(pam_handle_t *handle, void *data, int error_sta
         PamBusData *d = data;
         if (FLAGS_SET(error_status, PAM_DATA_SILENT) &&
             d->bus && bus_origin_changed(d->bus))
+                /* Please adjust test/units/end.sh when updating the log message. */
                 pam_syslog(handle, LOG_DEBUG, "Attempted to close sd-bus after fork whose connection is opened before the fork, this should not happen.");
 
         pam_bus_data_free(data);
index dd50654f8d13f87c19f8caddb3dba7e3198243ac..230b716e2f18f440f21b46cc856da66106f7aec1 100755 (executable)
@@ -6,5 +6,8 @@ set -o pipefail
 
 (! journalctl -q -o short-monotonic --grep "didn't pass validation" >>/failed)
 
+# Here, the redundant '[.]' at the end is for making not the logged self command hit the grep.
+(! journalctl -q -o short-monotonic --grep 'Attempted to close sd-bus after fork whose connection is opened before the fork, this should not happen[.]' >>/failed)
+
 systemctl poweroff --no-block
 exit 0