From 78e9bb837c258ac0ec7712b3d612cc2f407e731e Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 12 Jun 2024 05:50:42 +0200 Subject: Merging upstream version 256. Signed-off-by: Daniel Baumann --- test/units/testsuite-17.08.sh | 72 ------------------------------------------- 1 file changed, 72 deletions(-) delete mode 100755 test/units/testsuite-17.08.sh (limited to 'test/units/testsuite-17.08.sh') diff --git a/test/units/testsuite-17.08.sh b/test/units/testsuite-17.08.sh deleted file mode 100755 index e570c69..0000000 --- a/test/units/testsuite-17.08.sh +++ /dev/null @@ -1,72 +0,0 @@ -#!/usr/bin/env bash -# SPDX-License-Identifier: LGPL-2.1-or-later -set -ex -set -o pipefail - -# shellcheck source=test/units/util.sh -. "$(dirname "$0")"/util.sh - -# This is a test for issue #24518. - -mkdir -p /run/udev/rules.d/ -cat >/run/udev/rules.d/50-testsuite.rules < 1)) && sleep .5 - - ( - systemctl -q is-active /dev/test/symlink-to-null-on-add - ! systemctl -q is-active /dev/test/symlink-to-null-on-change - systemctl -q is-active /sys/test/alias-to-null-on-add - ! systemctl -q is-active /sys/test/alias-to-null-on-change - ) && break -done -assert_rc 0 systemctl -q is-active /dev/test/symlink-to-null-on-add -assert_rc 3 systemctl -q is-active /dev/test/symlink-to-null-on-change -assert_rc 0 systemctl -q is-active /sys/test/alias-to-null-on-add -assert_rc 3 systemctl -q is-active /sys/test/alias-to-null-on-change - -udevadm trigger --settle --action change /dev/null -for i in {1..20}; do - ((i > 1)) && sleep .5 - - ( - ! systemctl -q is-active /dev/test/symlink-to-null-on-add - systemctl -q is-active /dev/test/symlink-to-null-on-change - ! systemctl -q is-active /sys/test/alias-to-null-on-add - systemctl -q is-active /sys/test/alias-to-null-on-change - ) && break -done -assert_rc 3 systemctl -q is-active /dev/test/symlink-to-null-on-add -assert_rc 0 systemctl -q is-active /dev/test/symlink-to-null-on-change -assert_rc 3 systemctl -q is-active /sys/test/alias-to-null-on-add -assert_rc 0 systemctl -q is-active /sys/test/alias-to-null-on-change - -udevadm trigger --settle --action add /dev/null -for i in {1..20}; do - ((i > 1)) && sleep .5 - - ( - systemctl -q is-active /dev/test/symlink-to-null-on-add - ! systemctl -q is-active /dev/test/symlink-to-null-on-change - systemctl -q is-active /sys/test/alias-to-null-on-add - ! systemctl -q is-active /sys/test/alias-to-null-on-change - ) && break -done -assert_rc 0 systemctl -q is-active /dev/test/symlink-to-null-on-add -assert_rc 3 systemctl -q is-active /dev/test/symlink-to-null-on-change -assert_rc 0 systemctl -q is-active /sys/test/alias-to-null-on-add -assert_rc 3 systemctl -q is-active /sys/test/alias-to-null-on-change - -# cleanup -rm -f /run/udev/rules.d/50-testsuite.rules -udevadm control --reload - -exit 0 -- cgit v1.2.3