Commits

Marcin Kasperski committed 27b3130

Properly skipping tests

  • Participants
  • Parent commits 970e4a2

Comments (0)

Files changed (8)

t/01-set-and-get.t

 
 use strict;
 use warnings;
-use Test::Simple tests => 8;
+use Test::More;
+
+unless($^O eq 'darwin') {
+    plan skip_all => "Test relevant only to Mac OS/X";
+} else {
+    plan tests => 8;
+}
 
 use Passwd::Keyring::OSXKeychain;
 

t/02-is-persistent.t

 
 use strict;
 use warnings;
-use Test::Simple tests => 2;
+use Test::More;
+
+unless($^O eq 'darwin') {
+    plan skip_all => "Test relevant only to Mac OS/X";
+} else {
+    plan tests => 2;
+}
 
 use Passwd::Keyring::OSXKeychain;
 

t/03-many-sets-and-gets.t

 
 use strict;
 use warnings;
-use Test::Simple tests => 11;
+use Test::More;
+
+unless($^O eq 'darwin') {
+    plan skip_all => "Test relevant only to Mac OS/X";
+} else {
+    plan tests => 11;
+}
+
+
 
 use Passwd::Keyring::OSXKeychain;
 

t/04-recovering-in-sep-prog.t

 
 use strict;
 use warnings;
-use Test::Simple tests => 13;
+use Test::More;
+unless($^O eq 'darwin') {
+    plan skip_all => "Test relevant only to Mac OS/X";
+} else {
+    plan tests => 13;
+}
+
 
 use Passwd::Keyring::OSXKeychain;
 

t/05-many-sets-and-gets-with-name.t

 
 use strict;
 use warnings;
-use Test::Simple tests => 20;
+use Test::More;
+unless($^O eq 'darwin') {
+    plan skip_all => "Test relevant only to Mac OS/X";
+} else {
+    plan tests => 20;
+}
 
 use Passwd::Keyring::OSXKeychain;
 

t/06-recovering-with-app-change.t

 
 use strict;
 use warnings;
-use Test::More tests => 16;
+use Test::More;
+unless($^O eq 'darwin') {
+    plan skip_all => "Test relevant only to Mac OS/X";
+} else {
+    plan tests => 16;
+}
 
 use Passwd::Keyring::OSXKeychain;
 

t/07-ugly-chars.t

 
 use strict;
 use warnings;
-use Test::Simple tests => 4;
+use Test::More;
+unless($^O eq 'darwin') {
+    plan skip_all => "Test relevant only to Mac OS/X";
+} else {
+    plan tests => 4;
+}
 
 use Passwd::Keyring::OSXKeychain;
 

t/08-verylong-params.t

 
 use strict;
 use warnings;
-use Test::Simple tests => 4;
+use Test::More;
+unless($^O eq 'darwin') {
+    plan skip_all => "Test relevant only to Mac OS/X";
+} else {
+    plan tests => 4;
+}
 
 use Passwd::Keyring::OSXKeychain;