From 8c578621f7b4c21836f6a21634ecdbb57451abab Mon Sep 17 00:00:00 2001 From: Philip Chimento Date: Tue, 27 Dec 2016 18:17:31 -0700 Subject: build: Remove underscore from symbols used in tests The underscore prevents them from being exported, and they need to be exported in order to be used in the tests. (Unreviewed, fixes build on macOS) --- test/gjs-test-coverage.cpp | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'test/gjs-test-coverage.cpp') diff --git a/test/gjs-test-coverage.cpp b/test/gjs-test-coverage.cpp index fb27d931..9d024176 100644 --- a/test/gjs-test-coverage.cpp +++ b/test/gjs-test-coverage.cpp @@ -119,8 +119,8 @@ gjs_coverage_fixture_set_up(gpointer fixture_data, fixture->context = gjs_context_new_with_search_path((char **) search_paths); fixture->coverage = - _gjs_coverage_new_internal_without_cache(coverage_paths, fixture->context, - fixture->lcov_output_dir); + gjs_coverage_new_internal_without_cache(coverage_paths, fixture->context, + fixture->lcov_output_dir); replace_file(fixture->tmp_js_script, js_script); g_free(tmp_output_dir_name); @@ -311,8 +311,8 @@ create_coverage_for_script(GjsContext *context, }; GjsCoverage *retval = - _gjs_coverage_new_internal_without_cache(coverage_scripts, context, - output_dir); + gjs_coverage_new_internal_without_cache(coverage_scripts, context, + output_dir); g_free(script_path); return retval; } @@ -330,8 +330,8 @@ create_coverage_for_script_and_cache(GjsContext *context, }; GjsCoverage *retval = - _gjs_coverage_new_internal_with_cache(coverage_scripts, context, - output_dir, cache); + gjs_coverage_new_internal_with_cache(coverage_scripts, context, + output_dir, cache); g_free(script_path); return retval; } @@ -358,9 +358,9 @@ test_covered_file_is_duplicated_into_output_if_resource(gpointer fixture_da fixture->context = gjs_context_new_with_search_path(search_paths); fixture->coverage = - _gjs_coverage_new_internal_without_cache(coverage_scripts, - fixture->context, - fixture->lcov_output_dir); + gjs_coverage_new_internal_without_cache(coverage_scripts, + fixture->context, + fixture->lcov_output_dir); gjs_context_eval_file(fixture->context, mock_resource_filename, @@ -504,9 +504,9 @@ test_expected_entry_not_written_for_nonexistent_file(gpointer fixture_data, g_object_unref(fixture->coverage); fixture->coverage = - _gjs_coverage_new_internal_without_cache(coverage_paths, - fixture->context, - fixture->lcov_output_dir); + gjs_coverage_new_internal_without_cache(coverage_paths, + fixture->context, + fixture->lcov_output_dir); /* Temporarily disable fatal mask and silence warnings */ GLogLevelFlags old_flags = g_log_set_always_fatal((GLogLevelFlags) G_LOG_LEVEL_ERROR); @@ -1271,9 +1271,9 @@ gjs_coverage_multiple_source_files_to_single_output_fixture_set_up(gpointer fixt fixture->base_fixture.context = gjs_context_new_with_search_path(search_paths); fixture->base_fixture.coverage = - _gjs_coverage_new_internal_without_cache(coverage_paths, - fixture->base_fixture.context, - fixture->base_fixture.lcov_output_dir); + gjs_coverage_new_internal_without_cache(coverage_paths, + fixture->base_fixture.context, + fixture->base_fixture.lcov_output_dir); g_free(output_path); g_free(first_js_script_path); -- cgit v1.2.1