unitests: Adapt to recent API changes.
This commit is contained in:
parent
7754fb4d93
commit
34f4e3b4e4
|
@ -88,11 +88,11 @@ END_TEST
|
|||
/* Check whether sr_output_options_get() works. */
|
||||
START_TEST(test_output_options)
|
||||
{
|
||||
const struct sr_option *opt;
|
||||
const struct sr_option **opt;
|
||||
|
||||
opt = sr_output_options_get(sr_output_find("bits"));
|
||||
fail_unless(opt != NULL, "Couldn't find 'bits' options.");
|
||||
fail_unless(!strcmp(opt->id, "width"), "Wrong 'bits' option found!");
|
||||
fail_unless(!strcmp((*opt)->id, "width"), "Wrong 'bits' option found!");
|
||||
}
|
||||
END_TEST
|
||||
|
||||
|
|
Loading…
Reference in New Issue