From 44cfdd7e3cd5cbe71a71d01c7848e928a83d2fad Mon Sep 17 00:00:00 2001 From: Danny Milosavljevic Date: Tue, 12 Mar 2019 12:38:43 +0100 Subject: [PATCH] ARM: Fix stat test. * build-aux/test-c.sh: Increase test timeout to 20 s. * lib/tests/io/90-stat.c: Add __arm__ case for stat structure. --- build-aux/test-c.sh | 2 +- lib/tests/io/90-stat.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build-aux/test-c.sh b/build-aux/test-c.sh index 9a84f6c4..1e8340b1 100755 --- a/build-aux/test-c.sh +++ b/build-aux/test-c.sh @@ -63,7 +63,7 @@ $CC -c $CPPFLAGS $CFLAGS -o "$o".o "$t" $CC $CFLAGS $LDFLAGS -L . -o "$o" $crt1 "$o".o $LIBS set +e -timeout 10 "$o" -s --long file0 file1 > "$o".1 2> "$o".2 +timeout 20 "$o" -s --long file0 file1 > "$o".1 2> "$o".2 r=$? set -e if [ -f "$b".exit ]; then diff --git a/lib/tests/io/90-stat.c b/lib/tests/io/90-stat.c index b7f400b3..cad5e38d 100644 --- a/lib/tests/io/90-stat.c +++ b/lib/tests/io/90-stat.c @@ -26,7 +26,7 @@ #include -#if __i386__ +#if __i386__ || __arm__ #define stat xstat struct stat