summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--FS/t/agent_payment_gateway.t5
-rw-r--r--FS/t/banned_pay.t9
-rw-r--r--FS/t/cancel_reason.t9
-rw-r--r--FS/t/payment_gateway.t9
-rw-r--r--FS/t/payment_gateway_option.t9
-rwxr-xr-xbin/generate-table-module6
6 files changed, 20 insertions, 27 deletions
diff --git a/FS/t/agent_payment_gateway.t b/FS/t/agent_payment_gateway.t
new file mode 100644
index 000000000..af78a9a27
--- /dev/null
+++ b/FS/t/agent_payment_gateway.t
@@ -0,0 +1,5 @@
+BEGIN { $| = 1; print "1..1\n" }
+END {print "not ok 1\n" unless $loaded;}
+use FS::agent_payment_gateway;
+$loaded=1;
+print "ok 1\n";
diff --git a/FS/t/banned_pay.t b/FS/t/banned_pay.t
index d361c588d..bef1ff25f 100644
--- a/FS/t/banned_pay.t
+++ b/FS/t/banned_pay.t
@@ -1,8 +1,5 @@
-BEGIN { $| = 1; print "1..1
-" }
-END {print "not ok 1
-" unless $loaded;}
+BEGIN { $| = 1; print "1..1\n" }
+END {print "not ok 1\n" unless $loaded;}
use FS::banned_pay;
$loaded=1;
-print "ok 1
-";
+print "ok 1\n";
diff --git a/FS/t/cancel_reason.t b/FS/t/cancel_reason.t
index 4cbda4a65..a5948f657 100644
--- a/FS/t/cancel_reason.t
+++ b/FS/t/cancel_reason.t
@@ -1,8 +1,5 @@
-BEGIN { $| = 1; print "1..1
-" }
-END {print "not ok 1
-" unless $loaded;}
+BEGIN { $| = 1; print "1..1\n" }
+END {print "not ok 1\n" unless $loaded;}
use FS::cancel_reason;
$loaded=1;
-print "ok 1
-";
+print "ok 1\n";
diff --git a/FS/t/payment_gateway.t b/FS/t/payment_gateway.t
index b91d58244..4bcc78153 100644
--- a/FS/t/payment_gateway.t
+++ b/FS/t/payment_gateway.t
@@ -1,8 +1,5 @@
-BEGIN { $| = 1; print "1..1
-" }
-END {print "not ok 1
-" unless $loaded;}
+BEGIN { $| = 1; print "1..1\n" }
+END {print "not ok 1\n" unless $loaded;}
use FS::payment_gateway;
$loaded=1;
-print "ok 1
-";
+print "ok 1\n";
diff --git a/FS/t/payment_gateway_option.t b/FS/t/payment_gateway_option.t
index e52b6b487..19e645121 100644
--- a/FS/t/payment_gateway_option.t
+++ b/FS/t/payment_gateway_option.t
@@ -1,8 +1,5 @@
-BEGIN { $| = 1; print "1..1
-" }
-END {print "not ok 1
-" unless $loaded;}
+BEGIN { $| = 1; print "1..1\n" }
+END {print "not ok 1\n" unless $loaded;}
use FS::payment_gateway_option;
$loaded=1;
-print "ok 1
-";
+print "ok 1\n";
diff --git a/bin/generate-table-module b/bin/generate-table-module
index 14ae653df..fcc3f1d1f 100755
--- a/bin/generate-table-module
+++ b/bin/generate-table-module
@@ -68,11 +68,11 @@ close DEST;
open(TEST,">FS/t/$table.t") or die $!;
print TEST <<ENDTEST;
-BEGIN { \$| = 1; print "1..1\n" }
-END {print "not ok 1\n" unless \$loaded;}
+BEGIN { \$| = 1; print "1..1\\n" }
+END {print "not ok 1\\n" unless \$loaded;}
use FS::$table;
\$loaded=1;
-print "ok 1\n";
+print "ok 1\\n";
ENDTEST
close TEST;