Make ttest compile under clang
This commit is contained in:
parent
ad74123882
commit
826885df8a
@ -98,7 +98,7 @@ int main(int argc, char **argv)
|
||||
close(tt_fd[1]);
|
||||
int failed = 0;
|
||||
int bytes = 0;
|
||||
if(bytes = read(tt_fd[0], buffer, TT_BUFFER_SIZE))
|
||||
if((bytes = read(tt_fd[0], buffer, TT_BUFFER_SIZE)))
|
||||
{
|
||||
failed = 1;
|
||||
errors[failures] = buffer;
|
||||
|
2
ttest
2
ttest
@ -13,7 +13,7 @@ main()
|
||||
local tests=`sed -n -e 's/^\s*TEST(\([^,]*,\).*$/ttt_\1/p' $suite`
|
||||
echo "tt_test tt_tests[] = {${tests}0};" >> $suite.c
|
||||
|
||||
test_exec=`mktemp`
|
||||
test_exec=`mktemp /tmp/tmp.XXXXXX`
|
||||
compiler_output=`cc $suite.c -o $test_exec -ggdb -I $dir/include -DTTEST 2>&1`
|
||||
compiler_status=$?
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user