diff --git a/test/unit/prv.c b/test/unit/prv.c index 03b281a..a06c3d3 100644 --- a/test/unit/prv.c +++ b/test/unit/prv.c @@ -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) diff --git a/test/unit/value.c b/test/unit/value.c index b2e650a..c93ff0a 100644 --- a/test/unit/value.c +++ b/test/unit/value.c @@ -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; }