[svn:parrot] r48952 - trunk/t/dynpmc

fperrad at svn.parrot.org fperrad at svn.parrot.org
Sun Sep 12 09:27:16 UTC 2010


Author: fperrad
Date: Sun Sep 12 09:27:16 2010
New Revision: 48952
URL: https://trac.parrot.org/parrot/changeset/48952

Log:
[t] refactor with skip_all

Modified:
   trunk/t/dynpmc/gziphandle.t

Modified: trunk/t/dynpmc/gziphandle.t
==============================================================================
--- trunk/t/dynpmc/gziphandle.t	Sun Sep 12 09:25:53 2010	(r48951)
+++ trunk/t/dynpmc/gziphandle.t	Sun Sep 12 09:27:16 2010	(r48952)
@@ -22,15 +22,13 @@
     .include 'test_more.pir'
     .include 'iglobals.pasm'
     .local pmc config_hash, interp
-    .local int num_tests
 
-    num_tests = 10
-    plan(num_tests)
     interp = getinterp
     config_hash = interp[.IGLOBALS_CONFIG_HASH]
     $S0 = config_hash['has_zlib']
     unless $S0 goto no_zlib
 
+    plan(10)
     $P0 = loadlib 'gziphandle'
     test_handle()
     test_stream()
@@ -39,7 +37,7 @@
     .return()
 
   no_zlib:
-    skip(num_tests, 'No zlib library available')
+    skip_all('No zlib library available')
     .return()
 .end
 


More information about the parrot-commits mailing list