#4700: check-0.15.1
--------------------+-----------------------
Reporter: bdubbs | Owner: lfs-book
Type: task | Status: new
Priority: normal | Milestone: 10.0
Component: Book | Version: SVN
Severity: normal | Resolution:
Keywords: |
--------------------+-----------------------
Comment (by pierre.labastie):
Looks like the libpipeline testsuite completely fails to compile with this
version of check. The error is:
{{{
In file included from common.h:3,
from argstr.c:28:
argstr.c: In function 'test_argstr_trivial_fn':
argstr.c:40:2: error: too few arguments to function '_ck_assert_failed'
40 | fail_unless (!strcmp (cmd->name, "/bin/simple"));
| ^~~~~~~~~~~
/usr/include/check.h:502:27: note: declared here
502 | CK_DLL_EXP void CK_EXPORT _ck_assert_failed(const char *file, int
line,
| ^~~~~~~~~~~~~~~~~
}}}
Note that there are lots of similar errors, all involving ''fail_unless''
and ''_ck_assert_failed'', the only thing changing being the .c file name.
This complicated sed (maybe it can be simplified), allows the tests to
build and pass ('''apply the sed in libpipeline'''):
{{{
sed -i '/\(fail_unless\|fail_if\)
(\([^,]*([^)]*)[^,]*\|\[^,]*\));/s/);/,0);/' tests/*.c
}}}
--
Ticket URL: <http://wiki.linuxfromscratch.org/lfs/ticket/4700#comment:2>
LFS Trac <http://wiki.linuxfromscratch.org/lfs/>
Linux From Scratch: Your Distro, Your Rules.
--
http://lists.linuxfromscratch.org/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page