PATH=/usr/bin:/bin:/home/fly1800/var/megalib/bin Start 2015-10-21T00:05:32 ActivePerl-1800 CPAN-2.00 Reading '/home/fly1800/var/cpan/Metadata' Database was generated on Wed, 21 Oct 2015 00:54:01 GMT Running make for P/PE/PERLANCAR/File-Write-Rotate-0.29.tar.gz Fetching with LWP: http://cpan.nas1.activestate.com/authors/id/P/PE/PERLANCAR/File-Write-Rotate-0.29.tar.gz Checksum for /home/fly1800/var/cpan/sources/authors/id/P/PE/PERLANCAR/File-Write-Rotate-0.29.tar.gz ok File-Write-Rotate-0.29/ File-Write-Rotate-0.29/README File-Write-Rotate-0.29/lib/ File-Write-Rotate-0.29/lib/File/ File-Write-Rotate-0.29/lib/File/Write/ File-Write-Rotate-0.29/lib/File/Write/Rotate.pm File-Write-Rotate-0.29/Makefile.PL File-Write-Rotate-0.29/Changes File-Write-Rotate-0.29/dist.ini File-Write-Rotate-0.29/LICENSE File-Write-Rotate-0.29/t/ File-Write-Rotate-0.29/t/00-compile.t File-Write-Rotate-0.29/t/rotate.t File-Write-Rotate-0.29/t/todo.t File-Write-Rotate-0.29/t/write.t File-Write-Rotate-0.29/t/release-pod-coverage.t File-Write-Rotate-0.29/t/release-pod-syntax.t File-Write-Rotate-0.29/t/lock.t File-Write-Rotate-0.29/weaver.ini File-Write-Rotate-0.29/MANIFEST File-Write-Rotate-0.29/META.json File-Write-Rotate-0.29/META.yml CPAN.pm: Building P/PE/PERLANCAR/File-Write-Rotate-0.29.tar.gz >>> /home/fly1800/ap1800-297235/bin/perl-static Makefile.PL Checking if your kit is complete... Looks good Generating a Unix-style Makefile Writing Makefile for File::Write::Rotate Writing MYMETA.yml and MYMETA.json >>> make cp lib/File/Write/Rotate.pm blib/lib/File/Write/Rotate.pm Manifying 1 pod document PERLANCAR/File-Write-Rotate-0.29.tar.gz make -- OK Running make test >>> make test TEST_VERBOSE=1 PERL_DL_NONLAZY=1 "/home/fly1800/ap1800-297235/bin/perl-static" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(1, 'blib/lib', 'blib/arch')" t/*.t t/00-compile.t ............ 1..1 ok 1 - File/Write/Rotate.pm loaded ok ok t/lock.t .................. # Subtest: locking: none ok 1 - lock file doesn't exist: created ok 2 - lock file doesn't exist: hook_before_rotate ok 3 - lock file doesn't exist: hook_after_rotate ok 4 - lock file doesn't exist: hook_after_create ok 5 - lock file doesn't exist: hook_before_write ok 6 - lock file doesn't exist: after 1st write ok 7 - lock file doesn't exist: hook_before_rotate ok 8 - lock file doesn't exist: hook_after_rotate ok 9 - lock file doesn't exist: hook_after_create ok 10 - lock file doesn't exist: hook_before_write ok 11 - lock file doesn't exist: after 2nd write ok 12 - Expected 4 hooks to run ok 13 - lock file doesn't exist: out of scope 1..13 ok 1 - locking: none # Subtest: locking: write ok 1 - lock file doesn't exist: created ok 2 - lock file exists: hook_before_rotate ok 3 - lock file exists: hook_after_rotate ok 4 - lock file exists: hook_after_create ok 5 - lock file exists: hook_before_write ok 6 - lock file doesn't exist: after 1st write ok 7 - lock file exists: hook_before_rotate ok 8 - lock file exists: hook_after_rotate ok 9 - lock file exists: hook_after_create ok 10 - lock file exists: hook_before_write ok 11 - lock file doesn't exist: after 2nd write ok 12 - Expected 4 hooks to run ok 13 - lock file doesn't exist: out of scope 1..13 ok 2 - locking: write # Subtest: locking: exclusive ok 1 - lock file exists: created ok 2 - lock file exists: hook_before_rotate ok 3 - lock file exists: hook_after_rotate ok 4 - lock file exists: hook_after_create ok 5 - lock file exists: hook_before_write ok 6 - lock file exists: after 1st write ok 7 - lock file exists: hook_before_rotate ok 8 - lock file exists: hook_after_rotate ok 9 - lock file exists: hook_after_create ok 10 - lock file exists: hook_before_write ok 11 - lock file exists: after 2nd write ok 12 - Expected 4 hooks to run ok 13 - lock file doesn't exist: out of scope 1..13 ok 3 - locking: exclusive 1..3 ok t/release-pod-coverage.t .. skipped: these tests are for release candidate testing t/release-pod-syntax.t .... skipped: these tests are for release candidate testing t/rotate.t ................ # Subtest: basic rotate ok 1 - files_after ok 2 - a -> a.1 ok 3 - a.2 -> a.2.gz ok 4 - a.2.gz -> a.3.gz ok 5 - b.1 untouched 1..5 ok 1 - basic rotate # Subtest: period, suffix ok 1 - files_after 1..1 ok 2 - period, suffix # Subtest: period, suffix (complex, no delete) ok 1 - files_after 1..1 ok 3 - period, suffix (complex, no delete) # Subtest: period, suffix (complex, rotate and delete) ok 1 - files_after 1..1 ok 4 - period, suffix (complex, rotate and delete) # Subtest: period, suffix (complex, delete_only) ok 1 - files_after 1..1 ok 5 - period, suffix (complex, delete_only) # Subtest: hook_before_rotate, hook_after_rotate ok 1 ok 2 - renamed argument ok 3 - deleted argument ok 4 - files_after ok 5 - hook_before_rotate executed ok 6 - hook_after_rotate executed 1..6 ok 6 - hook_before_rotate, hook_after_rotate # Subtest: under tainting ok 1 - files_after 1..1 ok 7 - under tainting 1..7 ok t/todo.t .................. 1..1 ok 1 ok t/write.t ................. # Subtest: Filehandle cached: basic ok 1 - should be unlocked ok 2 ok 3 - should be unlocked ok 4 1..4 ok 1 - Filehandle cached: basic # Subtest: Filehandle not cached: basic ok 1 - should be unlocked ok 2 ok 3 - should be unlocked ok 4 1..4 ok 2 - Filehandle not cached: basic # Subtest: Filehandle cached: binmode ':utf8' ok 1 - should be unlocked ok 2 - no 'Wide character in ...' warning ok 3 - file contents 1..3 ok 3 - Filehandle cached: binmode ':utf8' # Subtest: Filehandle not cached: binmode ':utf8' ok 1 - should be unlocked ok 2 - no 'Wide character in ...' warning ok 3 - file contents 1..3 ok 4 - Filehandle not cached: binmode ':utf8' # Subtest: Filehandle cached: rotate by size ok 1 - period ok 2 - should be unlocked ok 3 ok 4 - should be unlocked ok 5 ok 6 1..6 ok 5 - Filehandle cached: rotate by size # Subtest: Filehandle not cached: rotate by size ok 1 - period ok 2 - should be unlocked ok 3 ok 4 - should be unlocked ok 5 ok 6 1..6 ok 6 - Filehandle not cached: rotate by size # Subtest: Filehandle cached: rotate by size = 20Kb ok 1 - should be unlocked ok 2 - should be unlocked ok 3 - should be unlocked ok 4 - should be unlocked ok 5 - should be unlocked ok 6 - should be unlocked ok 7 - should be unlocked ok 8 - should be unlocked ok 9 - should be unlocked ok 10 - should be unlocked ok 11 - should be unlocked ok 12 - should be unlocked ok 13 - should be unlocked ok 14 - should be unlocked ok 15 - should be unlocked ok 16 - should be unlocked ok 17 - should be unlocked ok 18 - should be unlocked ok 19 - should be unlocked ok 20 - should be unlocked ok 21 - should be unlocked ok 22 - should be unlocked ok 23 - should be unlocked ok 24 - should be unlocked ok 25 - should be unlocked ok 26 - should be unlocked ok 27 - should be unlocked ok 28 - should be unlocked ok 29 - should be unlocked ok 30 - should be unlocked ok 31 - should be unlocked ok 32 - should be unlocked ok 33 - should be unlocked ok 34 - should be unlocked ok 35 - should be unlocked ok 36 - should be unlocked ok 37 - should be unlocked ok 38 - should be unlocked ok 39 - should be unlocked ok 40 - should be unlocked ok 41 - should be unlocked ok 42 - should be unlocked ok 43 - should be unlocked ok 44 - should be unlocked ok 45 - should be unlocked ok 46 - should be unlocked ok 47 - should be unlocked ok 48 - should be unlocked ok 49 - should be unlocked ok 50 - should be unlocked ok 51 - should be unlocked ok 52 - should be unlocked ok 53 - should be unlocked ok 54 - should be unlocked ok 55 - should be unlocked ok 56 - should be unlocked ok 57 - should be unlocked ok 58 - should be unlocked ok 59 - should be unlocked ok 60 - should be unlocked ok 61 - should be unlocked ok 62 - should be unlocked ok 63 - should be unlocked ok 64 - should be unlocked ok 65 - should be unlocked ok 66 - should be unlocked ok 67 - should be unlocked ok 68 - should be unlocked ok 69 - should be unlocked ok 70 - should be unlocked ok 71 - should be unlocked ok 72 - should be unlocked ok 73 - should be unlocked ok 74 - should be unlocked ok 75 - should be unlocked ok 76 - should be unlocked ok 77 - should be unlocked ok 78 - should be unlocked ok 79 - should be unlocked ok 80 - should be unlocked ok 81 - should be unlocked ok 82 - should be unlocked ok 83 - should be unlocked ok 84 - should be unlocked ok 85 - should be unlocked ok 86 - should be unlocked ok 87 - should be unlocked ok 88 - should be unlocked ok 89 - should be unlocked ok 90 - should be unlocked ok 91 - should be unlocked ok 92 - should be unlocked ok 93 - should be unlocked ok 94 - should be unlocked ok 95 - should be unlocked ok 96 - should be unlocked ok 97 - should be unlocked ok 98 - should be unlocked ok 99 - should be unlocked ok 100 - should be unlocked ok 101 - should be unlocked ok 102 - should be unlocked ok 103 - should be unlocked ok 104 - should be unlocked ok 105 - should be unlocked ok 106 - should be unlocked ok 107 - should be unlocked ok 108 - should be unlocked ok 109 - should be unlocked ok 110 - should be unlocked ok 111 - should be unlocked ok 112 - should be unlocked ok 113 - should be unlocked ok 114 - should be unlocked ok 115 - should be unlocked ok 116 - should be unlocked ok 117 - should be unlocked ok 118 - should be unlocked ok 119 - should be unlocked ok 120 - should be unlocked ok 121 - should be unlocked ok 122 - should be unlocked ok 123 - should be unlocked ok 124 - should be unlocked ok 125 - should be unlocked ok 126 - should be unlocked ok 127 - should be unlocked ok 128 - should be unlocked ok 129 - should be unlocked ok 130 - should be unlocked ok 131 - should be unlocked ok 132 - should be unlocked ok 133 - should be unlocked ok 134 - should be unlocked ok 135 - should be unlocked ok 136 - should be unlocked ok 137 - should be unlocked ok 138 - should be unlocked ok 139 - should be unlocked ok 140 - should be unlocked ok 141 - should be unlocked ok 142 - should be unlocked ok 143 - should be unlocked ok 144 - should be unlocked ok 145 - should be unlocked ok 146 - should be unlocked ok 147 - should be unlocked ok 148 - should be unlocked ok 149 - should be unlocked ok 150 - should be unlocked ok 151 - should be unlocked ok 152 - should be unlocked ok 153 - should be unlocked ok 154 - should be unlocked ok 155 - should be unlocked ok 156 - should be unlocked ok 157 - should be unlocked ok 158 - should be unlocked ok 159 - should be unlocked ok 160 - should be unlocked ok 161 - should be unlocked ok 162 - should be unlocked ok 163 - should be unlocked ok 164 - should be unlocked ok 165 - should be unlocked ok 166 - should be unlocked ok 167 - should be unlocked ok 168 - should be unlocked ok 169 - should be unlocked ok 170 - should be unlocked ok 171 - should be unlocked ok 172 - should be unlocked ok 173 - should be unlocked ok 174 - should be unlocked ok 175 - should be unlocked ok 176 - should be unlocked ok 177 - should be unlocked ok 178 - should be unlocked ok 179 - should be unlocked ok 180 - should be unlocked ok 181 - should be unlocked ok 182 - should be unlocked ok 183 - should be unlocked ok 184 - should be unlocked ok 185 - should be unlocked ok 186 - should be unlocked ok 187 - should be unlocked ok 188 - should be unlocked ok 189 - should be unlocked ok 190 - should be unlocked ok 191 - should be unlocked ok 192 - should be unlocked ok 193 - should be unlocked ok 194 - should be unlocked ok 195 - should be unlocked ok 196 - should be unlocked ok 197 - should be unlocked ok 198 - should be unlocked ok 199 - should be unlocked ok 200 - should be unlocked ok 201 - first file exists and has 20Kb so far ok 202 - rotate files does not exists yet # printing one more message to force rotation bondaries ok 203 - should be unlocked ok 204 - new file exists and has 100 bytes ok 205 - rotate file exists and has 20Kb ok 206 - compress method returns true ok 207 - rotated file a.1 was compressed to a.1.gz ok 208 - original a.1 is deleted ok 209 - compressed file size is smaller than before compression 1..209 ok 7 - Filehandle cached: rotate by size = 20Kb # Subtest: Filehandle not cached: rotate by size = 20Kb ok 1 - should be unlocked ok 2 - should be unlocked ok 3 - should be unlocked ok 4 - should be unlocked ok 5 - should be unlocked ok 6 - should be unlocked ok 7 - should be unlocked ok 8 - should be unlocked ok 9 - should be unlocked ok 10 - should be unlocked ok 11 - should be unlocked ok 12 - should be unlocked ok 13 - should be unlocked ok 14 - should be unlocked ok 15 - should be unlocked ok 16 - should be unlocked ok 17 - should be unlocked ok 18 - should be unlocked ok 19 - should be unlocked ok 20 - should be unlocked ok 21 - should be unlocked ok 22 - should be unlocked ok 23 - should be unlocked ok 24 - should be unlocked ok 25 - should be unlocked ok 26 - should be unlocked ok 27 - should be unlocked ok 28 - should be unlocked ok 29 - should be unlocked ok 30 - should be unlocked ok 31 - should be unlocked ok 32 - should be unlocked ok 33 - should be unlocked ok 34 - should be unlocked ok 35 - should be unlocked ok 36 - should be unlocked ok 37 - should be unlocked ok 38 - should be unlocked ok 39 - should be unlocked ok 40 - should be unlocked ok 41 - should be unlocked ok 42 - should be unlocked ok 43 - should be unlocked ok 44 - should be unlocked ok 45 - should be unlocked ok 46 - should be unlocked ok 47 - should be unlocked ok 48 - should be unlocked ok 49 - should be unlocked ok 50 - should be unlocked ok 51 - should be unlocked ok 52 - should be unlocked ok 53 - should be unlocked ok 54 - should be unlocked ok 55 - should be unlocked ok 56 - should be unlocked ok 57 - should be unlocked ok 58 - should be unlocked ok 59 - should be unlocked ok 60 - should be unlocked ok 61 - should be unlocked ok 62 - should be unlocked ok 63 - should be unlocked ok 64 - should be unlocked ok 65 - should be unlocked ok 66 - should be unlocked ok 67 - should be unlocked ok 68 - should be unlocked ok 69 - should be unlocked ok 70 - should be unlocked ok 71 - should be unlocked ok 72 - should be unlocked ok 73 - should be unlocked ok 74 - should be unlocked ok 75 - should be unlocked ok 76 - should be unlocked ok 77 - should be unlocked ok 78 - should be unlocked ok 79 - should be unlocked ok 80 - should be unlocked ok 81 - should be unlocked ok 82 - should be unlocked ok 83 - should be unlocked ok 84 - should be unlocked ok 85 - should be unlocked ok 86 - should be unlocked ok 87 - should be unlocked ok 88 - should be unlocked ok 89 - should be unlocked ok 90 - should be unlocked ok 91 - should be unlocked ok 92 - should be unlocked ok 93 - should be unlocked ok 94 - should be unlocked ok 95 - should be unlocked ok 96 - should be unlocked ok 97 - should be unlocked ok 98 - should be unlocked ok 99 - should be unlocked ok 100 - should be unlocked ok 101 - should be unlocked ok 102 - should be unlocked ok 103 - should be unlocked ok 104 - should be unlocked ok 105 - should be unlocked ok 106 - should be unlocked ok 107 - should be unlocked ok 108 - should be unlocked ok 109 - should be unlocked ok 110 - should be unlocked ok 111 - should be unlocked ok 112 - should be unlocked ok 113 - should be unlocked ok 114 - should be unlocked ok 115 - should be unlocked ok 116 - should be unlocked ok 117 - should be unlocked ok 118 - should be unlocked ok 119 - should be unlocked ok 120 - should be unlocked ok 121 - should be unlocked ok 122 - should be unlocked ok 123 - should be unlocked ok 124 - should be unlocked ok 125 - should be unlocked ok 126 - should be unlocked ok 127 - should be unlocked ok 128 - should be unlocked ok 129 - should be unlocked ok 130 - should be unlocked ok 131 - should be unlocked ok 132 - should be unlocked ok 133 - should be unlocked ok 134 - should be unlocked ok 135 - should be unlocked ok 136 - should be unlocked ok 137 - should be unlocked ok 138 - should be unlocked ok 139 - should be unlocked ok 140 - should be unlocked ok 141 - should be unlocked ok 142 - should be unlocked ok 143 - should be unlocked ok 144 - should be unlocked ok 145 - should be unlocked ok 146 - should be unlocked ok 147 - should be unlocked ok 148 - should be unlocked ok 149 - should be unlocked ok 150 - should be unlocked ok 151 - should be unlocked ok 152 - should be unlocked ok 153 - should be unlocked ok 154 - should be unlocked ok 155 - should be unlocked ok 156 - should be unlocked ok 157 - should be unlocked ok 158 - should be unlocked ok 159 - should be unlocked ok 160 - should be unlocked ok 161 - should be unlocked ok 162 - should be unlocked ok 163 - should be unlocked ok 164 - should be unlocked ok 165 - should be unlocked ok 166 - should be unlocked ok 167 - should be unlocked ok 168 - should be unlocked ok 169 - should be unlocked ok 170 - should be unlocked ok 171 - should be unlocked ok 172 - should be unlocked ok 173 - should be unlocked ok 174 - should be unlocked ok 175 - should be unlocked ok 176 - should be unlocked ok 177 - should be unlocked ok 178 - should be unlocked ok 179 - should be unlocked ok 180 - should be unlocked ok 181 - should be unlocked ok 182 - should be unlocked ok 183 - should be unlocked ok 184 - should be unlocked ok 185 - should be unlocked ok 186 - should be unlocked ok 187 - should be unlocked ok 188 - should be unlocked ok 189 - should be unlocked ok 190 - should be unlocked ok 191 - should be unlocked ok 192 - should be unlocked ok 193 - should be unlocked ok 194 - should be unlocked ok 195 - should be unlocked ok 196 - should be unlocked ok 197 - should be unlocked ok 198 - should be unlocked ok 199 - should be unlocked ok 200 - should be unlocked ok 201 - first file exists and has 20Kb so far ok 202 - rotate files does not exists yet # printing one more message to force rotation bondaries ok 203 - should be unlocked ok 204 - new file exists and has 100 bytes ok 205 - rotate file exists and has 20Kb ok 206 - compress method returns true ok 207 - rotated file a.1 was compressed to a.1.gz ok 208 - original a.1 is deleted ok 209 - compressed file size is smaller than before compression 1..209 ok 8 - Filehandle not cached: rotate by size = 20Kb # Subtest: Filehandle cached: rotate by period, daily ok 1 - period ok 2 - should be unlocked ok 3 - got expected content in the file (1) ok 4 - should be unlocked ok 5 - got expected content in the file (2) ok 6 - should be unlocked ok 7 - got expected content in the file (3) ok 8 - compress method returns true ok 9 - rotated file a.2012-12-21 was compressed to a.2012-12-21.gz ok 10 - original a.2012-12-21 is deleted 1..10 ok 9 - Filehandle cached: rotate by period, daily # Subtest: Filehandle not cached: rotate by period, daily ok 1 - period ok 2 - should be unlocked ok 3 - got expected content in the file (1) ok 4 - should be unlocked ok 5 - got expected content in the file (2) ok 6 - should be unlocked ok 7 - got expected content in the file (3) ok 8 - compress method returns true ok 9 - rotated file a.2012-12-21 was compressed to a.2012-12-21.gz ok 10 - original a.2012-12-21 is deleted 1..10 ok 10 - Filehandle not cached: rotate by period, daily # Subtest: Filehandle cached: rotate by period, monthly ok 1 - period ok 2 - should be unlocked ok 3 ok 4 - should be unlocked ok 5 ok 6 - should be unlocked ok 7 ok 8 - compress method returns true ok 9 - rotated file a.2012-12 was compressed to a.2012-12.gz ok 10 - original a.2012-12 is deleted 1..10 ok 11 - Filehandle cached: rotate by period, monthly # Subtest: Filehandle not cached: rotate by period, monthly ok 1 - period ok 2 - should be unlocked ok 3 ok 4 - should be unlocked ok 5 ok 6 - should be unlocked ok 7 ok 8 - compress method returns true ok 9 - rotated file a.2012-12 was compressed to a.2012-12.gz ok 10 - original a.2012-12 is deleted 1..10 ok 12 - Filehandle not cached: rotate by period, monthly # Subtest: Filehandle cached: rotate by period, yearly ok 1 - period ok 2 - should be unlocked ok 3 ok 4 - should be unlocked ok 5 ok 6 - should be unlocked ok 7 ok 8 - compress method returns true ok 9 - rotated file a.2012 was compressed to a.2012.gz ok 10 - original a.2012 is deleted 1..10 ok 13 - Filehandle cached: rotate by period, yearly # Subtest: Filehandle not cached: rotate by period, yearly ok 1 - period ok 2 - should be unlocked ok 3 ok 4 - should be unlocked ok 5 ok 6 - should be unlocked ok 7 ok 8 - compress method returns true ok 9 - rotated file a.2012 was compressed to a.2012.gz ok 10 - original a.2012 is deleted 1..10 ok 14 - Filehandle not cached: rotate by period, yearly # Subtest: Filehandle cached: rotate by period + size, suffix ok 1 - period ok 2 - should be unlocked ok 3 ok 4 - should be unlocked ok 5 ok 6 ok 7 - should be unlocked ok 8 ok 9 ok 10 ok 11 - should be unlocked ok 12 ok 13 - compress method returns true ok 14 - rotated file a.2012-12-21.log was compressed to a.2012-12-21.log.gz ok 15 - original a.2012-12-21.log is deleted ok 16 - rotated file a.2012-12-21.log.1 was compressed to a.2012-12-21.log.1.gz ok 17 - original a.2012-12-21.log.1 is deleted ok 18 - rotated file a.2012-12-21.log.2 was compressed to a.2012-12-21.log.2.gz ok 19 - original a.2012-12-21.log.2 is deleted 1..19 ok 15 - Filehandle cached: rotate by period + size, suffix # Subtest: Filehandle not cached: rotate by period + size, suffix ok 1 - period ok 2 - should be unlocked ok 3 ok 4 - should be unlocked ok 5 ok 6 ok 7 - should be unlocked ok 8 ok 9 ok 10 ok 11 - should be unlocked ok 12 ok 13 - compress method returns true ok 14 - rotated file a.2012-12-21.log was compressed to a.2012-12-21.log.gz ok 15 - original a.2012-12-21.log is deleted ok 16 - rotated file a.2012-12-21.log.1 was compressed to a.2012-12-21.log.1.gz ok 17 - original a.2012-12-21.log.1 is deleted ok 18 - rotated file a.2012-12-21.log.2 was compressed to a.2012-12-21.log.2.gz ok 19 - original a.2012-12-21.log.2 is deleted 1..19 ok 16 - Filehandle not cached: rotate by period + size, suffix # Subtest: Filehandle cached: two writers, one rotates ok 1 - should be unlocked ok 2 ok 3 ok 4 ok 5 - should be unlocked ok 6 ok 7 ok 8 - compress method returns true ok 9 - rotated file a.1 was compressed to a.1.gz ok 10 - original a.1 is deleted 1..10 ok 17 - Filehandle cached: two writers, one rotates # Subtest: Filehandle not cached: two writers, one rotates ok 1 - should be unlocked ok 2 ok 3 ok 4 ok 5 - should be unlocked ok 6 ok 7 ok 8 - compress method returns true ok 9 - rotated file a.1 was compressed to a.1.gz ok 10 - original a.1 is deleted 1..10 ok 18 - Filehandle not cached: two writers, one rotates # Subtest: rotate on first write() ok 1 ok 2 ok 3 - compress method returns true ok 4 - rotated file a.1 was compressed to a.1.gz ok 5 - original a.1 is deleted 1..5 ok 19 - rotate on first write() # Subtest: Filehandle cached: hook_before_write basic ok 1 - lock file exists ok 2 - should be unlocked ok 3 - hook messages OK ok 4 - content OK 1..4 ok 20 - Filehandle cached: hook_before_write basic # Subtest: Filehandle not cached: hook_before_write basic ok 1 - lock file exists ok 2 - should be unlocked ok 3 - hook messages OK ok 4 - content OK 1..4 ok 21 - Filehandle not cached: hook_before_write basic # Subtest: buffer (success), hook_before_write ok 1 - first message to buffer ok 2 - second message to buffer ok 3 - should be unlocked ok 4 - buffered messages gets logged ok 5 - buffered is emptied ok 6 - should be unlocked 1..6 ok 22 - buffer (success), hook_before_write # Subtest: buffer (failed, full), buffer_size attribute ok 1 - buffer_size() ok 2 - first message to buffer ok 3 - should be unlocked ok 4 - second message to buffer ok 5 - should be unlocked ok 6 - buffer is full ok 7 - should be unlocked 1..7 ok 23 - buffer (failed, full), buffer_size attribute # Subtest: hook_after_create ok 1 1..1 ok 24 - hook_after_create # Subtest: Filehandle cached: rotate by period, daily + histories ok 1 - should be unlocked ok 2 - current file only ok 3 - should be unlocked ok 4 - 1 history ok 5 - should be unlocked ok 6 - 2 histories ok 7 - should be unlocked ok 8 - 2 histories (deleted) 1..8 ok 25 - Filehandle cached: rotate by period, daily + histories # Subtest: Filehandle not cached: rotate by period, daily + histories ok 1 - should be unlocked ok 2 - current file only ok 3 - should be unlocked ok 4 - 1 history ok 5 - should be unlocked ok 6 - 2 histories ok 7 - should be unlocked ok 8 - 2 histories (deleted) 1..8 ok 26 - Filehandle not cached: rotate by period, daily + histories # Subtest: Filehandle cached: rotate by size + histories ok 1 - should be unlocked ok 2 - current file only ok 3 - should be unlocked ok 4 - 1 history (rotated) ok 5 - should be unlocked ok 6 - 2 histories (rotated) ok 7 - should be unlocked ok 8 - 2 histories (rotated and deleted) 1..8 ok 27 - Filehandle cached: rotate by size + histories # Subtest: Filehandle not cached: rotate by size + histories ok 1 - should be unlocked ok 2 - current file only ok 3 - should be unlocked ok 4 - 1 history (rotated) ok 5 - should be unlocked ok 6 - 2 histories (rotated) ok 7 - should be unlocked ok 8 - 2 histories (rotated and deleted) 1..8 ok 28 - Filehandle not cached: rotate by size + histories # Subtest: Filehandle cached: rotate by size + period + histories ok 1 - should be unlocked ok 2 ok 3 - should be unlocked ok 4 ok 5 - should be unlocked ok 6 ok 7 - should be unlocked ok 8 - rotate 2012-12-22 but NOT 2012-12-21 ok 9 - should be unlocked ok 10 - delete [1] as a result of rotating at 2012-12-22 ok 11 - should be unlocked ok 12 - delete [2] as a result of entering the new period ok 13 - should be unlocked ok 14 ok 15 - should be unlocked ok 16 - not rotating because it's within the size limite 1..16 ok 29 - Filehandle cached: rotate by size + period + histories # Subtest: Filehandle not cached: rotate by size + period + histories ok 1 - should be unlocked ok 2 ok 3 - should be unlocked ok 4 ok 5 - should be unlocked ok 6 ok 7 - should be unlocked ok 8 - rotate 2012-12-22 but NOT 2012-12-21 ok 9 - should be unlocked ok 10 - delete [1] as a result of rotating at 2012-12-22 ok 11 - should be unlocked ok 12 - delete [2] as a result of entering the new period ok 13 - should be unlocked ok 14 ok 15 - should be unlocked ok 16 - not rotating because it's within the size limite 1..16 ok 30 - Filehandle not cached: rotate by size + period + histories 1..30 ok All tests successful. Files=7, Tests=42, 1 wallclock secs ( 0.13 usr 0.08 sys + 0.90 cusr 0.19 csys = 1.30 CPU) Result: PASS PERLANCAR/File-Write-Rotate-0.29.tar.gz make test TEST_VERBOSE=1 -- OK perlancar <perlancar@gmail.com> Write to files that archive/rotate themselves >>> (cd /home/fly1800/var/cpan/build/File-Write-Rotate-0.29-_31QQ_ && tar cvf - File-Write-Rotate-0.29.ppd blib) | gzip -c >/home/fly1800/var/REPO/P/PE/PERLANCAR/File-Write-Rotate-0.29.tar.gz File-Write-Rotate-0.29.ppd blib/ blib/lib/ blib/lib/File/ blib/lib/File/Write/ blib/lib/File/Write/Rotate.pm blib/man3/ blib/man3/File::Write::Rotate.3 >>> mv /home/fly1800/var/cpan/build/File-Write-Rotate-0.29-_31QQ_/File-Write-Rotate-0.29.ppd /home/fly1800/var/REPO/P/PE/PERLANCAR VmSize: 309016 kB Finished 2015-10-21T00:05:38