]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: mkswap file-existing subtest add explicit page size
authorKarel Zak <kzak@redhat.com>
Tue, 7 Apr 2026 15:33:57 +0000 (17:33 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 7 Apr 2026 15:33:57 +0000 (17:33 +0200)
The file-existing subtest fails on platforms with large native page
sizes (e.g. 64 KiB on aarch64) because the 40 KiB swap image is
too small. Add -p 4096 to match the other subtests.

Signed-off-by: Karel Zak <kzak@redhat.com>
tests/ts/mkswap/mkswap

index 19111971cc846a829193bc7d4126060d27af05c2..c3ae302b635eb5d276d0350d35d52cff43da3e7d 100755 (executable)
@@ -105,11 +105,11 @@ ts_init_subtest file-existing
 outimg="$TS_OUTDIR/existing.img"
 rm -f "$outimg"
 
-"$TS_CMD_MKSWAP" -q -U "$UUID" -F -s $((4096 * 10)) "$outimg" \
+"$TS_CMD_MKSWAP" -q -U "$UUID" -p 4096 -F -s $((4096 * 10)) "$outimg" \
     >> "$TS_OUTPUT" 2>/dev/null \
     || ts_log "mkswap failed"
 
-"$TS_CMD_MKSWAP" -q -U "$UUID" -F -s $((4096 * 10)) "$outimg" \
+"$TS_CMD_MKSWAP" -q -U "$UUID" -p 4096 -F -s $((4096 * 10)) "$outimg" \
     >> "$TS_OUTPUT" 2>&1 \
     || ts_log "mkswap -F failed on existing file"