From: Theodore Ts'o Date: Fri, 16 Sep 2011 04:02:52 +0000 (-0400) Subject: libext2fs: fix size check in tst_inode_size X-Git-Tag: v1.42-WIP-0916~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=65b7a463da3b8f7ce0892be579f34ba4cf66456e;p=thirdparty%2Fe2fsprogs.git libext2fs: fix size check in tst_inode_size Also add run tst_inode_size automaically from "make check" Signed-off-by: "Theodore Ts'o" --- diff --git a/lib/ext2fs/Makefile.in b/lib/ext2fs/Makefile.in index 60f4e9676..d26840219 100644 --- a/lib/ext2fs/Makefile.in +++ b/lib/ext2fs/Makefile.in @@ -361,6 +361,7 @@ check:: tst_bitops tst_badblocks tst_iscan tst_types tst_icount tst_super_size t LD_LIBRARY_PATH=$(LIB) DYLD_LIBRARY_PATH=$(LIB) ./tst_types LD_LIBRARY_PATH=$(LIB) DYLD_LIBRARY_PATH=$(LIB) ./tst_icount LD_LIBRARY_PATH=$(LIB) DYLD_LIBRARY_PATH=$(LIB) ./tst_super_size + LD_LIBRARY_PATH=$(LIB) DYLD_LIBRARY_PATH=$(LIB) ./tst_inode_size LD_LIBRARY_PATH=$(LIB) DYLD_LIBRARY_PATH=$(LIB) ./tst_csum LD_LIBRARY_PATH=$(LIB) DYLD_LIBRARY_PATH=$(LIB) ./tst_crc32c diff --git a/lib/ext2fs/tst_inode_size.c b/lib/ext2fs/tst_inode_size.c index 962f1cd33..78720c6d9 100644 --- a/lib/ext2fs/tst_inode_size.c +++ b/lib/ext2fs/tst_inode_size.c @@ -73,7 +73,7 @@ int main(int argc, char **argv) check_structure_fields(); printf("Size of struct ext2_inode is %d\n", l); - if (l != 256) { + if (l != 128) { exit(1); } exit(0);