+ /* Notifiers on NULL work, too. */
+ ok1(tal_add_notifier(NULL, TAL_NOTIFY_ADD_CHILD|TAL_NOTIFY_DEL_CHILD,
+ notify_null));
+ expect = TAL_NOTIFY_ADD_CHILD;
+ expect_info = &expect_info;
+ child = tal(NULL, char);
+ ok1(notified_null == 1);
+
+ expect = TAL_NOTIFY_DEL_CHILD;
+ expect_info = child;
+ tal_free(child);
+ ok1(notified_null == 2);
+ ok1(tal_del_notifier(NULL, notify_null));
+