libkdumpfile/fix_xlat-linux-x86_64-6.11-pti-user-ver_test.patch
Philipp Rudo cf0ecdeb6d Rebase to upstream 0.5.5
Upstream: Fedora
Resolves: RHEL-86263

Signed-off-by: Philipp Rudo <prudo@redhat.com>
2025-05-26 17:11:06 +02:00

49 lines
1.4 KiB
Diff

commit cc927b9e22ebe6de1a6ed23ca8d14d1f3d790fb5
Author: Petr Tesarik <petr@tesarici.cz>
Date: Fri Dec 27 12:17:35 2024 +0100
tests: Fix xlat-linux-x86_64-6.11-pti-user-ver with parallel runs
The xlat-linux-x86_64-6.11-pti-user and xlat-linux-x86_64-6.11-pti-user-ver
test cases use the same input files, but the logic is flawed, because they
also use the same output file names. That fails if both run in parallel.
Fixes: #85
Signed-off-by: Petr Tesarik <petr@tesarici.cz>
diff --git a/tests/xlat-linux-x86_64-6.11-pti-user-ver b/tests/xlat-linux-x86_64-6.11-pti-user-ver
index 43d500d..427985b 100755
--- a/tests/xlat-linux-x86_64-6.11-pti-user-ver
+++ b/tests/xlat-linux-x86_64-6.11-pti-user-ver
@@ -14,5 +14,5 @@ opts=(
osver=0x060b00
)
-name=xlat-linux-x86_64-6.11-pti-user
+srcname=xlat-linux-x86_64-6.11-pti-user
. "$srcdir"/xlat-os-common
diff --git a/tests/xlat-os-common b/tests/xlat-os-common
index a308a74..7dcdee9 100644
--- a/tests/xlat-os-common
+++ b/tests/xlat-os-common
@@ -4,13 +4,14 @@
mkdir -p out || exit 99
-if [ -z "$name" ]; then
- name=$( basename "$0" )
+name=$( basename "$0" )
+if [ -z "$srcname" ]; then
+ srcname="$name"
fi
resultfile="out/${name}.result"
-expectfile="$srcdir/$name.expect"
-symfile="$srcdir/$name.sym"
-datafile="$srcdir/$name.data"
+expectfile="$srcdir/$srcname.expect"
+symfile="$srcdir/$srcname.sym"
+datafile="$srcdir/$srcname.data"
cfgfile="out/${name}.cfg"
optspec=