tests: elm: check return of efl_config_bool_set

Make sure we fail the test, unless this settign succeed.

CID: 1403891

Reviewed-by: Christopher Michael <devilhorns@comcast.net>
Differential Revision: https://phab.enlightenment.org/D11968
This commit is contained in:
Stefan Schmidt 2020-06-11 13:35:52 +02:00
parent 35ca2cbd06
commit b4f5d65259
1 changed files with 1 additions and 1 deletions

View File

@ -142,7 +142,7 @@ EFL_START_TEST(efl_config_eoapi)
Eina_Bool b = elm_config_audio_mute_get(channels[i].chan);
if (b != efl_config_bool_get(cfg, channels[i].name))
fail(channels[i].name);
efl_config_bool_set(cfg, channels[i].name, !b);
fail_unless(efl_config_bool_set(cfg, channels[i].name, !b));
if(efl_config_bool_get(cfg, channels[i].name) != !b)
fail(channels[i].name);
if(elm_config_audio_mute_get(channels[i].chan) != !b)