diff options
author | hunt <hunt> | 2007-05-01 15:22:27 +0000 |
---|---|---|
committer | hunt <hunt> | 2007-05-01 15:22:27 +0000 |
commit | 732401fa3e49a2327d0023c1cdeb93a6743ab24a (patch) | |
tree | 0f60ab0692dd4debb7d97334e50c5d740cc06276 | |
parent | 7941efe597ce346eff2c177008057d274a7f3315 (diff) | |
download | systemtap-steved-732401fa3e49a2327d0023c1cdeb93a6743ab24a.tar.gz systemtap-steved-732401fa3e49a2327d0023c1cdeb93a6743ab24a.tar.xz systemtap-steved-732401fa3e49a2327d0023c1cdeb93a6743ab24a.zip |
2007-05-01 Martin Hunt <hunt@redhat.com>
* statfs.c (main): Fix expected expression to accept
both 32 and 64-bit pointers.
-rw-r--r-- | testsuite/systemtap.syscall/ChangeLog | 5 | ||||
-rw-r--r-- | testsuite/systemtap.syscall/statfs.c | 19 |
2 files changed, 8 insertions, 16 deletions
diff --git a/testsuite/systemtap.syscall/ChangeLog b/testsuite/systemtap.syscall/ChangeLog index 3b2470a5..08f6a6c9 100644 --- a/testsuite/systemtap.syscall/ChangeLog +++ b/testsuite/systemtap.syscall/ChangeLog @@ -1,3 +1,8 @@ +2007-05-01 Martin Hunt <hunt@redhat.com> + + * statfs.c (main): Fix expected expression to accept + both 32 and 64-bit pointers. + 2007-04-24 David Wilder <dwilder@us.ibm.com> * 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 791d49d3..ea33193b 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; } |