qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [RFC 6/6] tests: Workaround gcov being unable to open .


From: Eduardo Habkost
Subject: Re: [Qemu-devel] [RFC 6/6] tests: Workaround gcov being unable to open .gcda file
Date: Mon, 28 Jan 2013 15:26:36 -0200
User-agent: Mutt/1.5.21 (2010-09-15)

On Sat, Jan 26, 2013 at 12:45:15PM +0100, Andreas Färber wrote:
> Resolve the following error:
> 
>   hw/tmp105.gcda:cannot open data file, assuming not executed
> 
> by adding a sleep before running gcov after the qtest cases.

Do you understand why exactly this happens?

> 
> Signed-off-by: Andreas Färber <address@hidden>
> ---
>  tests/Makefile |    2 +-
>  1 Datei geändert, 1 Zeile hinzugefügt(+), 1 Zeile entfernt(-)
> 
> diff --git a/tests/Makefile b/tests/Makefile
> index 442b286..3182dca 100644
> --- a/tests/Makefile
> +++ b/tests/Makefile
> @@ -153,7 +153,7 @@ $(patsubst %, check-qtest-%, $(QTEST_TARGETS)): 
> check-qtest-%: $(check-qtest-y)
>       $(if $(CONFIG_GCOV),@rm -f *.gcda */*.gcda */*/*.gcda */*/*/*.gcda,)
>       $(call quiet-command,QTEST_QEMU_BINARY=$*-softmmu/qemu-system-$* \
>               gtester $(GTESTER_OPTIONS) -m=$(SPEED) 
> $(check-qtest-$*-y),"GTESTER $@")
> -     $(if $(CONFIG_GCOV),@for f in $(gcov-files-$*-y); do \
> +     $(if $(CONFIG_GCOV),@sleep 1; for f in $(gcov-files-$*-y); do \
>         echo Gcov report for $$f:;\
>         $(GCOV) $(GCOV_OPTIONS) $$f -o `dirname $$f`; \
>       done,)
> -- 
> 1.7.10.4
> 
> 

-- 
Eduardo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]