summaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2018-07-02 16:04:09 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2018-07-02 16:04:09 +0200
commit42a344055fbb786cfbf9f3f163356081783c19fb (patch)
treeda47dba84aaf00922af2886e3b1cd60e3d22dd05 /t
parent8398de7b4480debefef750d8734a9982cd48d3ea (diff)
downloadurpmi-42a344055fbb786cfbf9f3f163356081783c19fb.tar
urpmi-42a344055fbb786cfbf9f3f163356081783c19fb.tar.gz
urpmi-42a344055fbb786cfbf9f3f163356081783c19fb.tar.bz2
urpmi-42a344055fbb786cfbf9f3f163356081783c19fb.tar.xz
urpmi-42a344055fbb786cfbf9f3f163356081783c19fb.zip
perl_checker cleanups
Diffstat (limited to 't')
-rw-r--r--t/helper.pm2
-rw-r--r--t/superuser--file-conflicts.t8
2 files changed, 5 insertions, 5 deletions
diff --git a/t/helper.pm b/t/helper.pm
index 40324133..81cbe59b 100644
--- a/t/helper.pm
+++ b/t/helper.pm
@@ -31,7 +31,7 @@ sub need_root_and_prepare() {
}
my $server_pid;
-sub httpd_port { 6969 }
+sub httpd_port() { 6969 }
sub start_httpd() {
system('perl -MNet::Server::Single -e 1') == 0 or die "module Net::Server::Single is missing (package perl-Net-Server)\n";
$server_pid = fork();
diff --git a/t/superuser--file-conflicts.t b/t/superuser--file-conflicts.t
index 6528d2c2..eaaa0550 100644
--- a/t/superuser--file-conflicts.t
+++ b/t/superuser--file-conflicts.t
@@ -33,7 +33,7 @@ test_rpm_different_transactions();
test_urpmi_same_transaction();
test_urpmi_different_transactions();
-sub test_rpm_same_transaction {
+sub test_rpm_same_transaction() {
test_rpm_i_fail('a', 'b');
check_nothing_installed();
@@ -57,7 +57,7 @@ sub test_rpm_same_transaction {
check_installed_and_remove('h', 'i');
}
-sub test_rpm_different_transactions {
+sub test_rpm_different_transactions() {
test_rpm_i_succeeds('a');
test_rpm_i_fail('b');
check_installed_names('a');
@@ -103,7 +103,7 @@ sub test_rpm_different_transactions {
check_installed_and_remove('h', 'i');
}
-sub test_urpmi_same_transaction {
+sub test_urpmi_same_transaction() {
test_urpmi_fail('a b');
check_nothing_installed();
@@ -126,7 +126,7 @@ sub test_urpmi_same_transaction {
check_installed_and_remove('h', 'i');
}
-sub test_urpmi_different_transactions {
+sub test_urpmi_different_transactions() {
urpmi('a');
test_urpmi_fail('b');
check_installed_names('a');