diff options
author | WenHan Gu <Wenhan.gu@mediatek.com> | 2014-12-15 16:41:39 +0800 |
---|---|---|
committer | WenHan Gu <Wenhan.gu@mediatek.com> | 2014-12-19 15:08:29 +0800 |
commit | 63706c82b6943579a27a6025322d4628a20ad2f1 (patch) | |
tree | 9be9c1b97a82d1c187bfeb4304c8077b0acab4b2 | |
parent | 9cd9ac209dcc5406bc580779487bd7858faaa1ae (diff) | |
download | ndk-63706c82b6943579a27a6025322d4628a20ad2f1.tar.gz |
Refine testcase to fix inconsistence between portable/native header.
Change-Id: Id04127a7e80cb0d64af97904e40a968755d21ddd
-rw-r--r-- | tests/device/stat/jni/stat.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/device/stat/jni/stat.c b/tests/device/stat/jni/stat.c index 0d327125b..6dc55668d 100644 --- a/tests/device/stat/jni/stat.c +++ b/tests/device/stat/jni/stat.c @@ -32,7 +32,11 @@ int main() printf("Can't stat path %s\n", paths[i]); else { +#if defined(__le32__) || defined(__le64__) + printf("%14s %6ld: %s%s%s %s %s %s %s\n", paths[i], sb.st_size, +#else printf("%14s %6lld: %s%s%s %s %s %s %s\n", paths[i], sb.st_size, +#endif ((sb.st_mode & S_IRUSR)? "r" : " "), ((sb.st_mode & S_IWUSR)? "w" : " "), ((sb.st_mode & S_IXUSR)? "x" : " "), |