From: hunt Date: Tue, 1 May 2007 15:22:27 +0000 (+0000) Subject: 2007-05-01 Martin Hunt X-Git-Tag: release-0.5.14~110 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=732401fa3e49a2327d0023c1cdeb93a6743ab24a;p=systemtap.git 2007-05-01 Martin Hunt * statfs.c (main): Fix expected expression to accept both 32 and 64-bit pointers. --- diff --git a/testsuite/systemtap.syscall/ChangeLog b/testsuite/systemtap.syscall/ChangeLog index 3b2470a5e..08f6a6c9c 100644 --- a/testsuite/systemtap.syscall/ChangeLog +++ b/testsuite/systemtap.syscall/ChangeLog @@ -1,3 +1,8 @@ +2007-05-01 Martin Hunt + + * statfs.c (main): Fix expected expression to accept + both 32 and 64-bit pointers. + 2007-04-24 David Wilder * syscall.exp: Enabled 64-bit tests on s390, 32-bit test to use -m31 diff --git a/testsuite/systemtap.syscall/statfs.c b/testsuite/systemtap.syscall/statfs.c index 791d49d37..ea33193b8 100644 --- a/testsuite/systemtap.syscall/statfs.c +++ b/testsuite/systemtap.syscall/statfs.c @@ -8,26 +8,13 @@ int main() { ustat(42, (struct ustat *)0x12345678); -#if __WORDSIZE == 64 - // ustat (42, 0x0000000012345678) = -#else - // ustat (42, 0x12345678) = -#endif + // ustat (42, 0x0*12345678) = statfs("abc", (struct statfs *)0x12345678); -#if __WORDSIZE == 64 - // statfs ("abc", 0x0000000012345678) = -#else - // statfs ("abc", 0x12345678) = -#endif + // statfs ("abc", 0x0*12345678) = fstatfs(77, (struct statfs *)0x12345678); -#if __WORDSIZE == 64 - // fstatfs (77, 0x0000000012345678) = -#else - // fstatfs (77, 0x12345678) = -#endif - + // fstatfs (77, 0x0*12345678) = return 0; }