chiark / gitweb /
[PATCH] tweak udev-test.pl to report '0' errors if that's what happened.
[elogind.git] / test / udev-test.pl
index 9a54b6192aa286a0b65d693f9d4a889abe437558..613aa792d433f8bbf6cb29ff608e9de5245eaa17 100644 (file)
@@ -124,7 +124,7 @@ system("rm -rf $udev_root");
 mkdir($udev_root) || die "unable to create udev_root: $udev_root\n";
 
 # test
-my $error;
+my $error = 0;
 print "\nudev-test will run ".($#tests + 1)." tests:\n\n";
 
 foreach my $config (@tests) {