diff options
| -rwxr-xr-x | tests/df/no-mtab-status.sh | 3 | ||||
| -rwxr-xr-x | tests/df/skip-duplicates.sh | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/df/no-mtab-status.sh b/tests/df/no-mtab-status.sh index 0c2e8982d..135462393 100755 --- a/tests/df/no-mtab-status.sh +++ b/tests/df/no-mtab-status.sh @@ -28,7 +28,8 @@ grep '^#define HAVE_GETMNTENT 1' $CONFIG_HEADER > /dev/null \ || skip_ "getmntent is not used on this system" # Simulate "mtab" failure. -cat > k.c <<EOF || framework_failure_ +# Replace gnulib streq as that is not available here. +sed 's/streq/0==str''cmp/' > k.c <<EOF || framework_failure_ #define _GNU_SOURCE #include <stdio.h> #include <stdlib.h> diff --git a/tests/df/skip-duplicates.sh b/tests/df/skip-duplicates.sh index f97f794f5..c839f4e19 100755 --- a/tests/df/skip-duplicates.sh +++ b/tests/df/skip-duplicates.sh @@ -38,7 +38,8 @@ grep '^#define HAVE_GETMNTENT 1' $CONFIG_HEADER > /dev/null \ || skip_ "getmntent is not used on this system" # Simulate an mtab file to test various cases. -cat > k.c <<EOF || framework_failure_ +# Replace gnulib streq as that is not available here. +sed 's/streq/0==str''cmp/' > k.c <<EOF || framework_failure_ #define _GNU_SOURCE #include <stdio.h> #include <stdlib.h> |
