From 58abf3bd48e3ee590176574f35e2e5f201be28cd Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Mon, 3 Feb 2014 14:11:52 -0500 Subject: coverage: Get the list of covered files from coverage.js --- test/gjs-test-coverage.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'test/gjs-test-coverage.cpp') diff --git a/test/gjs-test-coverage.cpp b/test/gjs-test-coverage.cpp index c38b0e73..462c0012 100644 --- a/test/gjs-test-coverage.cpp +++ b/test/gjs-test-coverage.cpp @@ -1138,13 +1138,9 @@ test_no_hits_to_coverage_data_for_unexecuted(gpointer fixture_data, fixture->output_file_directory, NULL); - /* More than one assert per test is bad, but we are testing interlinked concepts */ - g_assert(coverage_data_contains_value_for_key(coverage_data_contents, - "LF:", - "1")); - g_assert(coverage_data_contains_value_for_key(coverage_data_contents, - "LH:", - "0")); + /* No files were executed, so the coverage data is empty. */ + g_assert_cmpstr(coverage_data_contents, ==, ""); + g_free(coverage_data_contents); } -- cgit v1.2.1