From b1012c31f38810c6754dcd4cf03f8d2bfb010506 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20G=C3=B6m=C3=B6ri?= Date: Fri, 29 May 2015 19:00:33 +0200 Subject: cover: handle undefined module when analysing to file It is possible that not just the source but even the beam of a module is not available when calling analyse_to_file. For example when coverdata is imported from an old file and since then a module was removed. Before this fix cover:analyse_to_file/3 could possibly never return because of a helper process crashed with error:undef and never reply to the caller. At the same time link the helper process to cover_server so any further error won't let the caller waiting indefinitely. --- lib/tools/test/cover_SUITE_data/compile_beam/t.erl | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 lib/tools/test/cover_SUITE_data/compile_beam/t.erl (limited to 'lib/tools/test/cover_SUITE_data/compile_beam') diff --git a/lib/tools/test/cover_SUITE_data/compile_beam/t.erl b/lib/tools/test/cover_SUITE_data/compile_beam/t.erl new file mode 100644 index 0000000000..96dc2f4209 --- /dev/null +++ b/lib/tools/test/cover_SUITE_data/compile_beam/t.erl @@ -0,0 +1,6 @@ +-module(t). + +-export([f/0]). + +f() -> + ok. -- cgit v1.2.3