From b6e78710bfe0905bdaae8ef4fadd2a676f44bdfe Mon Sep 17 00:00:00 2001 From: John Smith Date: Sat, 18 May 2013 21:01:50 +0200 Subject: Tests: changing calls from 'fstat' to 'fstat64' fixes these tests on 32 bit platforms: bug-858242.t, bug-808400*.t Change-Id: Ifd85c711a8d16eb3ef17bd1c585acdc34121b12d BUG: 962226 Signed-off-by: John Smith Reviewed-on: http://review.gluster.org/5034 Reviewed-by: Niels de Vos Tested-by: Gluster Build System --- tests/bugs/bug-808400-fcntl.c | 4 ++-- tests/bugs/bug-808400-flock.c | 4 ++-- tests/bugs/bug-858242.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'tests/bugs') diff --git a/tests/bugs/bug-808400-fcntl.c b/tests/bugs/bug-808400-fcntl.c index 36e6cf035..4deef34a5 100644 --- a/tests/bugs/bug-808400-fcntl.c +++ b/tests/bugs/bug-808400-fcntl.c @@ -84,9 +84,9 @@ main (int argc, char *argv[]) system (cmd); /* wait till graph switch completes */ - ret = fstat (fd, &stbuf); + ret = fstat64 (fd, &stbuf); if (ret < 0) { - fprintf (stderr, "fstat failure (%s)\n", strerror (errno)); + fprintf (stderr, "fstat64 failure (%s)\n", strerror (errno)); goto out; } diff --git a/tests/bugs/bug-808400-flock.c b/tests/bugs/bug-808400-flock.c index 3a30a1d4b..4770c81dc 100644 --- a/tests/bugs/bug-808400-flock.c +++ b/tests/bugs/bug-808400-flock.c @@ -63,9 +63,9 @@ main (int argc, char *argv[]) system (cmd); /* wait till graph switch completes */ - ret = fstat (fd, &stbuf); + ret = fstat64 (fd, &stbuf); if (ret < 0) { - fprintf (stderr, "fstat failure (%s)\n", strerror (errno)); + fprintf (stderr, "fstat64 failure (%s)\n", strerror (errno)); goto out; } diff --git a/tests/bugs/bug-858242.c b/tests/bugs/bug-858242.c index a42262e22..00a3a2d5f 100644 --- a/tests/bugs/bug-858242.c +++ b/tests/bugs/bug-858242.c @@ -43,9 +43,9 @@ main (int argc, char *argv[]) goto out; } - ret = fstat (fd, &statbuf); + ret = fstat64 (fd, &statbuf); if (ret < 0) { - fprintf (stderr, "fstat failed (%s)", strerror (errno)); + fprintf (stderr, "fstat64 failed (%s)", strerror (errno)); goto out; } -- cgit