#include "util.hh" #include "monitor-fd.hh" #include #include namespace nix { TEST(MonitorFdHup, shouldNotBlock) { Pipe p; p.create(); { // when monitor gets destroyed it should cancel the // background thread and do not block MonitorFdHup monitor(p.readSide.get()); } } }