summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2015-05-17 20:49:41 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2015-05-17 20:59:01 +0200
commit1f954b12d5d6fba4e5d183980b18bdf4032aa905 (patch)
treee74973a6f742f4946fd942e484cc1f020f61da45 /tests
parent300bad9092e0ddcae4a4137df087f5e32fbd6e00 (diff)
downloadpgfuse-1f954b12d5d6fba4e5d183980b18bdf4032aa905.tar.gz
pgfuse-1f954b12d5d6fba4e5d183980b18bdf4032aa905.tar.bz2
cherry picked statfs fix
Diffstat (limited to 'tests')
-rw-r--r--tests/testtypes.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/testtypes.c b/tests/testtypes.c
index 4ed880b..b3ad376 100644
--- a/tests/testtypes.c
+++ b/tests/testtypes.c
@@ -15,15 +15,21 @@ int main(void)
{
uint32_t uint32=0xffffFFFF;
uint64_t uint64=0xFFFFFFFFFFFFFFFFLL;
+ int32_t int32=0x7fffffff;
+ int64_t int64=0x7fffFFFFffffFFFFLL;
off_t offset=TYPE_MAX(off_t); /* Depends on _FILE_OFFSET_BITS */
size_t size=TYPE_MAX(size_t); /* Depends on int size */
printf("uint32_t max %20"PRIu32" %16"PRIx32"\n"
"uint64_t max %20"PRIu64" %16"PRIx64"\n"
+ "int32_t max %20"PRId32" %16"PRIx32"\n"
+ "int64_t max %20"PRId64" %16"PRIx64"\n"
"off_t max %20jd %16jx\n" /* try PRIdMAX if %jd unsupported */
"size_t max %20zu %16zx\n",
uint32, uint32,
uint64, uint64,
+ int32, int32,
+ int64, int64,
(intmax_t)offset, (intmax_t)offset,
size, size);