From 29231033bfa618e5c4e1c50a5cefba32e02f2708 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Wed, 28 Nov 2012 13:45:37 +0100 Subject: cover now relies on the compile info to find file sources Prior to this commit, cover relied on a simple heuristic that traverses directory from the beam file to find a source file. The heuristic was maintained with this patch but, if it fails, it fallbacks to the source value in the module compile info. In order to illustrate how it works, one of the tests that could not find its source now passes successfully (showing the source lookup is more robust). --- lib/tools/test/cover_SUITE_data/compile_beam/z.erl | 1 + 1 file changed, 1 insertion(+) create mode 100644 lib/tools/test/cover_SUITE_data/compile_beam/z.erl (limited to 'lib/tools/test/cover_SUITE_data') diff --git a/lib/tools/test/cover_SUITE_data/compile_beam/z.erl b/lib/tools/test/cover_SUITE_data/compile_beam/z.erl new file mode 100644 index 0000000000..7a2b143dde --- /dev/null +++ b/lib/tools/test/cover_SUITE_data/compile_beam/z.erl @@ -0,0 +1 @@ +-module(z). -- cgit v1.2.3