Test rework liblight.c