Perhaps umockdev_running_under_preload()? The "provides open" seems too much like an implementation detail?