From: Brad Scarlett Date: Thu, 17 Jul 2008 04:11:10 +0000 (+0000) Subject: Tims patch to fix test 122: the __arch_pack stuff is confusing it - as was the case... X-Git-Tag: v1.1.0~369 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=f818b1956bb3d25067f8adfa9f03b6ef6c87752b;p=xfstests-dev.git Tims patch to fix test 122: the __arch_pack stuff is confusing it - as was the case in the past with the "attribute packed" stuff for the efi/efd items etc.. It is confusing the parsing which works out the type names. Merge of master-melb:xfs-cmds:31658a by kenmcd. --- diff --git a/122 b/122 index f193ae49..6cb238d4 100755 --- a/122 +++ b/122 @@ -43,6 +43,12 @@ s/sizeof\( xfs_agf_t \) = 64/sizeof( xfs_agf_t ) = /; fi } +_attribute_filter() +{ + sed -e 's/__attribute__ *[(][(]packed[)][)]//' \ + -e 's/__arch_pack//' +} + cprog=$tmp.get_structs.c oprog=$tmp.get_structs progout=$tmp.output @@ -137,7 +143,7 @@ echo 'int main(int argc, char *argv[]) {' >>$cprog # Printfs of typedef sizes # cat /usr/include/xfs/xfs*.h | indent |\ -sed -e 's/__attribute__ *[(][(]packed[)][)]//' |\ +_attribute_filter |\ tee $seq.full |\ egrep '} *xfs_.*_t' |\ egrep -v -f $tmp.ignore |\