From 15829202862ed5bf6cc04aeb9144dedf33912608 Mon Sep 17 00:00:00 2001 From: Dan Church Date: Fri, 23 Jun 2023 13:38:22 -0500 Subject: [PATCH] CI: Don't use FindBin to set test library path --- Makefile | 2 +- t/freed-bytes-commas.t | 3 --- t/freed-bytes.t | 3 --- t/link-counting.t | 3 --- t/normal-linkage.t | 3 --- t/normal-non-linkage.t | 3 --- t/sha1collision-non-linkage.t | 3 --- t/timestamp-preservation.t | 3 --- t/zero-size-non-linkage.t | 3 --- 9 files changed, 1 insertion(+), 25 deletions(-) diff --git a/Makefile b/Makefile index f56e4e0..77e42ce 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,6 @@ PROVE = prove -rv TESTS_DIR = t test: - $(PROVE) $(TESTS_DIR) + $(PROVE) -l -I$(TESTS_DIR) $(TESTS_DIR) .PHONY: test diff --git a/t/freed-bytes-commas.t b/t/freed-bytes-commas.t index 1598500..fc5b13f 100644 --- a/t/freed-bytes-commas.t +++ b/t/freed-bytes-commas.t @@ -1,4 +1,3 @@ -#!/usr/bin/perl # vi: et sts=4 sw=4 ts=4 use strict; use warnings; @@ -6,8 +5,6 @@ use warnings; use Test::Simple tests => 1; -use FindBin qw//; -use lib $FindBin::RealBin; use TestFunctions; my $test_dir = &mktempdir; diff --git a/t/freed-bytes.t b/t/freed-bytes.t index 7d686c0..3945e3e 100644 --- a/t/freed-bytes.t +++ b/t/freed-bytes.t @@ -1,4 +1,3 @@ -#!/usr/bin/perl # vi: et sts=4 sw=4 ts=4 use strict; use warnings; @@ -6,8 +5,6 @@ use warnings; use Test::Simple tests => 3; -use FindBin qw//; -use lib $FindBin::RealBin; use TestFunctions; my $tarball_dir = &prep_tar; diff --git a/t/link-counting.t b/t/link-counting.t index e8d167c..e88b004 100644 --- a/t/link-counting.t +++ b/t/link-counting.t @@ -1,4 +1,3 @@ -#!/usr/bin/perl # vi: et sts=4 sw=4 ts=4 use strict; use warnings; @@ -6,8 +5,6 @@ use warnings; use Test::Simple tests => 3; -use FindBin qw//; -use lib $FindBin::RealBin; use TestFunctions; my $tarball_dir = &prep_tar; diff --git a/t/normal-linkage.t b/t/normal-linkage.t index 328f1fa..1743053 100644 --- a/t/normal-linkage.t +++ b/t/normal-linkage.t @@ -1,4 +1,3 @@ -#!/usr/bin/perl # vi: et sts=4 sw=4 ts=4 use strict; use warnings; @@ -6,8 +5,6 @@ use warnings; use Test::Simple tests => 3; -use FindBin qw//; -use lib $FindBin::RealBin; use TestFunctions; my $tarball_dir = &prep_tar; diff --git a/t/normal-non-linkage.t b/t/normal-non-linkage.t index 40377fd..afbd0f4 100644 --- a/t/normal-non-linkage.t +++ b/t/normal-non-linkage.t @@ -1,4 +1,3 @@ -#!/usr/bin/perl # vi: et sts=4 sw=4 ts=4 use strict; use warnings; @@ -6,8 +5,6 @@ use warnings; use Test::Simple tests => 3; -use FindBin qw//; -use lib $FindBin::RealBin; use TestFunctions; my $tarball_dir = &prep_tar; diff --git a/t/sha1collision-non-linkage.t b/t/sha1collision-non-linkage.t index 7fc53ec..f494436 100644 --- a/t/sha1collision-non-linkage.t +++ b/t/sha1collision-non-linkage.t @@ -1,4 +1,3 @@ -#!/usr/bin/perl # vi: et sts=4 sw=4 ts=4 use strict; use warnings; @@ -6,8 +5,6 @@ use warnings; use Test::Simple tests => 3; -use FindBin qw//; -use lib $FindBin::RealBin; use TestFunctions; my $tarball_dir = &prep_tar; diff --git a/t/timestamp-preservation.t b/t/timestamp-preservation.t index ca5929e..c8eea03 100644 --- a/t/timestamp-preservation.t +++ b/t/timestamp-preservation.t @@ -1,4 +1,3 @@ -#!/usr/bin/perl # vi: et sts=4 sw=4 ts=4 use strict; use warnings; @@ -6,8 +5,6 @@ use warnings; use Test::Simple tests => 4; -use FindBin qw//; -use lib $FindBin::RealBin; use TestFunctions; my $tarball_dir = &prep_tar; diff --git a/t/zero-size-non-linkage.t b/t/zero-size-non-linkage.t index 9093d35..1f841fd 100644 --- a/t/zero-size-non-linkage.t +++ b/t/zero-size-non-linkage.t @@ -1,4 +1,3 @@ -#!/usr/bin/perl # vi: et sts=4 sw=4 ts=4 use strict; use warnings; @@ -6,8 +5,6 @@ use warnings; use Test::Simple tests => 3; -use FindBin qw//; -use lib $FindBin::RealBin; use TestFunctions; my $tarball_dir = &prep_tar;