]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: Skip TEST-38-FREEZER if coverage is enabled
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 2 Dec 2024 17:05:26 +0000 (18:05 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 4 Dec 2024 10:12:50 +0000 (11:12 +0100)
The test freezes regularly when run with coverage so let's skip it
if coverage is enabled.

test/units/TEST-38-FREEZER.sh

index 07597843e258fdef6a59d0cb49a52328240ae677..4c483df46a8ce002f6da98800be8d3830e28dceb 100755 (executable)
@@ -7,6 +7,11 @@ set -o pipefail
 # shellcheck source=test/units/test-control.sh
 . "$(dirname "$0")"/test-control.sh
 
+if [[ -n "${COVERAGE_BUILD_DIR:-}" ]]; then
+    echo "TEST-38-FREEZER freezes when systemd is built with coverage enabled" >/skipped
+    exit 77
+fi
+
 systemd-analyze log-level debug
 
 unit=TEST-38-FREEZER-sleep.service