summaryrefslogtreecommitdiff
path: root/test/gjs-test-coverage.cpp
diff options
context:
space:
mode:
authorPhilip Chimento <philip.chimento@gmail.com>2019-06-07 13:11:23 -0700
committerPhilip Chimento <philip.chimento@gmail.com>2020-01-19 15:40:14 -0800
commitb814915a2c4e2c15e11bce4f18b3605fabe5915c (patch)
treeba713bc345b8df1ae3a7c984e56a184024aadfe4 /test/gjs-test-coverage.cpp
parent2cf7a6b96f5ce0dbf023ca600361cac872ace09e (diff)
downloadgjs-b814915a2c4e2c15e11bce4f18b3605fabe5915c.tar.gz
tests: Minor changes in debugger and coverage expected output
This is due to small bugfixes and/or changes in SpiderMonkey's debugger output. Note that the coverage changes are equally valid and our tests would actually ideally be robust to changes like this.
Diffstat (limited to 'test/gjs-test-coverage.cpp')
-rw-r--r--test/gjs-test-coverage.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/test/gjs-test-coverage.cpp b/test/gjs-test-coverage.cpp
index 2a77f977..b775156d 100644
--- a/test/gjs-test-coverage.cpp
+++ b/test/gjs-test-coverage.cpp
@@ -710,10 +710,10 @@ static void test_function_names_written_to_coverage_data(void* fixture_data,
fixture->tmp_js_script,
fixture->lcov_output);
- const char * expected_function_names[] = {
- "top-level",
- "f",
+ const char* expected_function_names[] = {
"b",
+ "f",
+ "top-level",
};
const gsize expected_function_names_len = G_N_ELEMENTS(expected_function_names);
@@ -758,10 +758,10 @@ static void test_function_lines_written_to_coverage_data(void* fixture_data,
fixture->coverage,
fixture->tmp_js_script,
fixture->lcov_output);
- const char * const expected_function_lines[] = {
+ const char* const expected_function_lines[] = {
+ "3",
"1",
"1",
- "3"
};
const gsize expected_function_lines_len = G_N_ELEMENTS(expected_function_lines);
@@ -844,9 +844,9 @@ static void test_function_hit_counts_for_big_functions_written_to_coverage_data(
fixture->lcov_output);
const FunctionHitCountData expected_hit_counts[] = {
- { "top-level", 1 },
- { "f", 1 },
- { "b", 1 },
+ {"b", 1},
+ {"f", 1},
+ {"top-level", 1},
};
const gsize expected_hit_count_len = G_N_ELEMENTS(expected_hit_counts);
@@ -889,9 +889,9 @@ test_function_hit_counts_for_little_functions_written_to_coverage_data(
fixture->lcov_output);
const FunctionHitCountData expected_hit_counts[] = {
- { "top-level", 1 },
- { "f", 1 },
- { "b", 1 },
+ {"b", 1},
+ {"f", 1},
+ {"top-level", 1},
};
const gsize expected_hit_count_len = G_N_ELEMENTS(expected_hit_counts);
@@ -929,9 +929,9 @@ static void test_function_hit_counts_written_to_coverage_data(
fixture->lcov_output);
const FunctionHitCountData expected_hit_counts[] = {
- { "top-level", 1 },
- { "f", 1 },
- { "b", 1 },
+ {"b", 1},
+ {"f", 1},
+ {"top-level", 1},
};
const gsize expected_hit_count_len = G_N_ELEMENTS(expected_hit_counts);