- /* simulate node creation with fake flag */
- udev_add_device(&udev, class_dev);
+ /* simulate node creation with test flag */
+ udev.test_run = 1;
+ if (udev.type == DEV_NET || udev.devt) {
+ udev_rules_get_name(&rules, &udev, class_dev);
+ udev_add_device(&udev, class_dev);
+ } else
+ info("only char and block devices with a dev-file are supported by this test program");
+ sysfs_close_class_device(class_dev);