diff options
author | Andrew Hsieh <andrewhsieh@google.com> | 2014-12-19 11:52:08 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2014-12-19 11:52:09 +0000 |
commit | 28f1414b93999db591a445c6eb9f15eb17c5f410 (patch) | |
tree | 505fedb50226c9854b909c5f777f360a7d2d52d9 | |
parent | 3777a0a63319e51adc66b8124d350f447ada3ade (diff) | |
parent | 63706c82b6943579a27a6025322d4628a20ad2f1 (diff) | |
download | ndk-28f1414b93999db591a445c6eb9f15eb17c5f410.tar.gz |
Merge "Refine testcase to fix inconsistence between portable/native header."
-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" : " "), |