Skip to content

Commit

Permalink
Skip FAT tests on big-endian architectures
Browse files Browse the repository at this point in the history
Otherwise src/fatclone.c fails on s390x like this:
> get_fat_type, 66, ERROR: data_size count error
> get_fat_type, 70, ERROR: clusters count error
  • Loading branch information
robert-scheck committed Jan 7, 2023
1 parent 16c1d49 commit 886bea8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/fat.test
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/bash
# src/fatclone.c supports only little-endian (always fails on s390x)
le="$(echo -n I | hexdump -o | awk '{ print substr($2, 6, 1); exit}')"
[[ "${le}" != "0" ]] || exit 77

srcdir="$(dirname "$0")"
"${srcdir}"/mini_clone_restore_test fat12
"${srcdir}"/mini_clone_restore_test fat16
Expand Down

0 comments on commit 886bea8

Please sign in to comment.