x86_64-pc-linux-gnu-gcc dosfsck.o boot.o check.o common.o fat.o file.o io.o lfn.o -o dosfsck x86_64-pc-linux-gnu-gcc dosfslabel.o boot.o check.o common.o fat.o file.o io.o lfn.o -o dosfslabel >>> Source compiled. >>> Test phase [check]: sys-fs/dosfstools-3.0.0 x86_64-pc-linux-gnu-gcc check.o -o check /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.1/../../../../lib64/crt1.o: In function `_start': (.text+0x20): undefined reference to `main' check.o: In function `path_name': /var/tmp/portage/sys-fs/dosfstools-3.0.0/work/dosfstools-3.0.0/src/check.c:195: undefined reference to `file_name' /var/tmp/portage/sys-fs/dosfstools-3.0.0/work/dosfstools-3.0.0/src/check.c:193: undefined reference to `die' check.o: In function `truncate_file': /var/tmp/portage/sys-fs/dosfstools-3.0.0/work/dosfstools-3.0.0/src/check.c:312: undefined reference to `die' /var/tmp/portage/sys-fs/dosfstools-3.0.0/work/dosfstools-3.0.0/src/check.c:312: undefined reference to `fs_write' /var/tmp/portage/sys-fs/dosfstools-3.0.0/work/dosfstools-3.0.0/src/check.c:314: undefined reference to `next_cluster' /var/tmp/portage/sys-fs/dosfstools-3.0.0/work/dosfstools-3.0.0/src/check.c:315: undefined reference to `set_fat' /var/tmp/portage/sys-fs/dosfstools-3.0.0/work/dosfstools-3.0.0/src/check.c:316: undefined reference to `set_fat' /var/tmp/portage/sys-fs/dosfstools-3.0.0/work/dosfstools-3.0.0/src/check.c:312: undefined reference to `fs_write' etc. etc. etc.
just realized its not really its tests but just an implicit rule for make that tries to create the check executable from check.o when called with make check.
yeah, there is no actual tests in dosfstools http://sources.gentoo.org/sys-fs/dosfstools/dosfstools-3.0.0.ebuild?r1=1.1&r2=1.2