my $main_conf = "udev-test.conf";
my $conf_tmp = "udev-test.rules";
-# uncomment following line to run udev with valgrind.
-# Should make this a runtime option to the script someday...
-#my $udev_bin = "valgrind --tool=memcheck --leak-check=yes ../udev";
my @tests = (
{
udev("add", $config->{subsys}, $config->{devpath}, \$config->{conf});
+
if ((-e "$PWD/$udev_root$config->{exp_name}") ||
(-l "$PWD/$udev_root$config->{exp_name}")) {
udev_init_config();
/* set signal handlers */
- memset(&act, 0x00, sizeof(act));
act.sa_handler = (void (*) (int))sig_handler;
sigemptyset (&act.sa_mask);
act.sa_flags = 0;
/* get node from db, remove db-entry, delete created node */
retval = udev_remove_device(&udev);
- /* Set the DEVNAME if known */
- if (udev.devname[0] != '\0') {
- setenv("DEVNAME", udev.devname, 1);
- }
/* run dev.d/ scripts if we're not instructed to ignore the event */
if (udev_dev_d && udev.devname[0] != '\0') {
setenv("DEVNAME", udev.devname, 1);