Update prv_register in tests

This commit is contained in:
Rodrigo Arias 2023-01-31 18:24:10 +01:00 committed by Rodrigo Arias Mallo
parent 4a8255e227
commit 0e8b23c918
2 changed files with 8 additions and 2 deletions

View File

@ -31,7 +31,7 @@ test_emit(const char *path)
}
for (int i = 0; i < NROWS; i++)
if (prv_register(&prv, i, type, &bay, &chan[i]) != 0)
if (prv_register(&prv, i, type, &bay, &chan[i], 0) != 0)
die("prv_register failed\n");
for (int i = 0; i < NROWS; i++)
@ -80,7 +80,7 @@ test_duplicate(const char *path)
if (bay_register(&bay, &chan) != 0)
die("bay_register failed\n");
if (prv_register(&prv, 0, type, &bay, &chan) != 0)
if (prv_register(&prv, 0, type, &bay, &chan, 0) != 0)
die("prv_register failed\n");
if (chan_set(&chan, value_int64(1000)) != 0)

View File

@ -19,5 +19,11 @@ main(void)
err("OK\n");
a = value_null();
b = value_null();
if (!value_is_equal(&a, &b))
die("null not equal");
return 0;
}