Commit b8c39264 authored by Daniel Stone's avatar Daniel Stone Committed by Daniel Stone

tests/config-parser: Remove useless duplicate test

test012 and test013 were exact duplicates of each other: asserting that
they could successfully look up a single boolean value.
Signed-off-by: Daniel Stone's avatarDaniel Stone <daniels@collabora.com>
parent 51d995ad
......@@ -353,19 +353,6 @@ ZUC_TEST_F(config_test_t1, test012, data)
struct weston_config_section *section;
struct weston_config *config = data;
section = weston_config_get_section(config, "stuff", NULL, NULL);
r = weston_config_section_get_bool(section, "flag", &b, false);
ZUC_ASSERT_EQ(0, r);
ZUC_ASSERT_EQ(true, b);
}
ZUC_TEST_F(config_test_t1, test013, data)
{
int r;
bool b;
struct weston_config_section *section;
struct weston_config *config = data;
section = weston_config_get_section(config, "stuff", NULL, NULL);
r = weston_config_section_get_bool(section, "bonk", &b, false);
ZUC_ASSERT_EQ(-1, r);
......@@ -373,7 +360,7 @@ ZUC_TEST_F(config_test_t1, test013, data)
ZUC_ASSERT_EQ(false, b);
}
ZUC_TEST_F(config_test_t1, test014, data)
ZUC_TEST_F(config_test_t1, test013, data)
{
char *s;
int r;
......@@ -391,7 +378,7 @@ out_free:
free(s);
}
ZUC_TEST_F(config_test_t1, test015, data)
ZUC_TEST_F(config_test_t1, test014, data)
{
char *s;
int r;
......@@ -409,7 +396,7 @@ out_free:
free(s);
}
ZUC_TEST_F(config_test_t1, test016, data)
ZUC_TEST_F(config_test_t1, test015, data)
{
char *s;
int r;
......@@ -429,7 +416,7 @@ out_free:
free(s);
}
ZUC_TEST_F(config_test_t1, test017, data)
ZUC_TEST_F(config_test_t1, test016, data)
{
const char *name;
int i;
......@@ -444,7 +431,7 @@ ZUC_TEST_F(config_test_t1, test017, data)
ZUC_ASSERT_EQ(6, i);
}
ZUC_TEST_F(config_test_t1, test018, data)
ZUC_TEST_F(config_test_t1, test017, data)
{
int r;
int32_t n;
......@@ -459,7 +446,7 @@ ZUC_TEST_F(config_test_t1, test018, data)
ZUC_ASSERT_EQ(0, errno);
}
ZUC_TEST_F(config_test_t1, test019, data)
ZUC_TEST_F(config_test_t1, test018, data)
{
int r;
uint32_t n;
......@@ -474,7 +461,7 @@ ZUC_TEST_F(config_test_t1, test019, data)
ZUC_ASSERT_EQ(0, errno);
}
ZUC_TEST_F(config_test_t1, test020, data)
ZUC_TEST_F(config_test_t1, test019, data)
{
int r;
uint32_t n;
......@@ -489,7 +476,7 @@ ZUC_TEST_F(config_test_t1, test020, data)
ZUC_ASSERT_EQ(0, errno);
}
ZUC_TEST_F(config_test_t1, test021, data)
ZUC_TEST_F(config_test_t1, test020, data)
{
int r;
uint32_t n;
......@@ -504,7 +491,7 @@ ZUC_TEST_F(config_test_t1, test021, data)
ZUC_ASSERT_EQ(0, errno);
}
ZUC_TEST_F(config_test_t1, test022, data)
ZUC_TEST_F(config_test_t1, test021, data)
{
int r;
uint32_t n;
......@@ -519,7 +506,7 @@ ZUC_TEST_F(config_test_t1, test022, data)
ZUC_ASSERT_EQ(0, errno);
}
ZUC_TEST_F(config_test_t1, test023, data)
ZUC_TEST_F(config_test_t1, test022, data)
{
int r;
uint32_t n;
......@@ -535,7 +522,7 @@ ZUC_TEST_F(config_test_t1, test023, data)
ZUC_ASSERT_EQ(0, errno);
}
ZUC_TEST_F(config_test_t1, test024, data)
ZUC_TEST_F(config_test_t1, test023, data)
{
int r;
uint32_t n;
......@@ -551,7 +538,7 @@ ZUC_TEST_F(config_test_t1, test024, data)
ZUC_ASSERT_EQ(0, errno);
}
ZUC_TEST_F(config_test_t1, test025, data)
ZUC_TEST_F(config_test_t1, test024, data)
{
int r;
uint32_t n;
......@@ -567,7 +554,7 @@ ZUC_TEST_F(config_test_t1, test025, data)
ZUC_ASSERT_EQ(EINVAL, errno);
}
ZUC_TEST_F(config_test_t1, test026, data)
ZUC_TEST_F(config_test_t1, test025, data)
{
int r;
uint32_t n;
......@@ -583,7 +570,7 @@ ZUC_TEST_F(config_test_t1, test026, data)
ZUC_ASSERT_EQ(EINVAL, errno);
}
ZUC_TEST_F(config_test_t1, test027, data)
ZUC_TEST_F(config_test_t1, test026, data)
{
int r;
int32_t n;
......@@ -598,7 +585,7 @@ ZUC_TEST_F(config_test_t1, test027, data)
ZUC_ASSERT_EQ(0, errno);
}
ZUC_TEST_F(config_test_t1, test028, data)
ZUC_TEST_F(config_test_t1, test027, data)
{
int r;
uint32_t n;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment