| 1 | [parrot] 511 $ prove -v t/pmc/packfile*.t |
|---|
| 2 | t/pmc/packfile.t ............... |
|---|
| 3 | 1..42 |
|---|
| 4 | ok 1 - new |
|---|
| 5 | ok 2 - Wordsize set |
|---|
| 6 | ok 3 - version_major set |
|---|
| 7 | ok 4 - bytecode_major set |
|---|
| 8 | ok 5 - set_string_native with invalid data throws |
|---|
| 9 | ok 6 - get_string(uuid) |
|---|
| 10 | ok 7 - get_string_keyed_int handle unknown key properly |
|---|
| 11 | ok 8 - set_string(uuid) |
|---|
| 12 | ok 9 - Length is 1 |
|---|
| 13 | ok 10 - Fetched length is 1 |
|---|
| 14 | ok 11 - set_string_keyed_int handle unknown key properly |
|---|
| 15 | not ok 12 - get_integer_keyed_str(wordsize) - error loading packfile: Unable to open filehandle from path 't/pmc/testlib/number.pbc' |
|---|
| 16 | not ok 13 - get_integer_keyed_str(byteorder) - error loading packfile: Unable to open filehandle from path 't/pmc/testlib/number.pbc' |
|---|
| 17 | not ok 14 - get_integer_keyed_str(fptype) - error loading packfile: Unable to open filehandle from path 't/pmc/testlib/number.pbc' |
|---|
| 18 | not ok 15 - get_integer_keyed_str(version_major) - error loading packfile: Unable to open filehandle from path 't/pmc/testlib/number.pbc' |
|---|
| 19 | not ok 16 - get_integer_keyed_str(version_minor) - error loading packfile: Unable to open filehandle from path 't/pmc/testlib/number.pbc' |
|---|
| 20 | not ok 17 - get_integer_keyed_str(version_patch) - error loading packfile: Unable to open filehandle from path 't/pmc/testlib/number.pbc' |
|---|
| 21 | not ok 18 - get_integer_keyed_str(bytecode_major) - error loading packfile: Unable to open filehandle from path 't/pmc/testlib/number.pbc' |
|---|
| 22 | not ok 19 - get_integer_keyed_str(bytecode_minor) - error loading packfile: Unable to open filehandle from path 't/pmc/testlib/number.pbc' |
|---|
| 23 | not ok 20 - get_integer_keyed_str unknown key - error loading packfile: Unable to open filehandle from path 't/pmc/testlib/number.pbc' |
|---|
| 24 | not ok 21 - set_integer_keyed_str version bumped - error loading packfile: Unable to open filehandle from path 't/pmc/testlib/number.pbc' |
|---|
| 25 | ok 22 - The object isa PackfileDirectory |
|---|
| 26 | not ok 23 - Wordsize set - error loading packfile: Unable to open filehandle from path 't/pmc/testlib/number.pbc' |
|---|
| 27 | not ok 24 - version_major set - error loading packfile: Unable to open filehandle from path 't/pmc/testlib/number.pbc' |
|---|
| 28 | not ok 25 - bytecode_major set - error loading packfile: Unable to open filehandle from path 't/pmc/testlib/number.pbc' |
|---|
| 29 | ok 26 - PackFile packed |
|---|
| 30 | ok 27 - PackFile unpacked after pack |
|---|
| 31 | ok 28 - uuid_type preserved |
|---|
| 32 | ok 29 - FixupTable contains one element |
|---|
| 33 | ok 30 - The object isa PackfileFixupEntry |
|---|
| 34 | ok 31 - FixupEntry offset preserved |
|---|
| 35 | ok 32 - FixupEntry name preserved |
|---|
| 36 | ok 33 - ConstantTable unpacked |
|---|
| 37 | ok 34 - and contains 4 elements |
|---|
| 38 | ok 35 - first is number |
|---|
| 39 | ok 36 - second is string |
|---|
| 40 | ok 37 - The object isa Integer |
|---|
| 41 | ok 38 - with proper value |
|---|
| 42 | ok 39 - The object isa Key |
|---|
| 43 | not ok 40 - pack produced same result twice - error loading packfile: Unable to open filehandle from path 't/pmc/testlib/number.pbc' |
|---|
| 44 | ok 41 #skip test_synonyms crash on many platforms. See TT #545 |
|---|
| 45 | ok 42 #skip test_synonyms crash on many platforms. See TT #545 |
|---|
| 46 | PackFile_unpack: This is not a valid Parrot bytecode file |
|---|
| 47 | Failed 14/42 subtests |
|---|
| 48 | (less 2 skipped subtests: 26 okay) |
|---|
| 49 | t/pmc/packfileannotation.t ..... |
|---|
| 50 | 1..5 |
|---|
| 51 | ok 1 - PackfileAnnotation created |
|---|
| 52 | ok 2 - Name stored and fetched |
|---|
| 53 | ok 3 - Offset stored and fetched |
|---|
| 54 | ok 4 - Value stored and fetched |
|---|
| 55 | ok 5 - Can't fetch wrong value from Annotation |
|---|
| 56 | ok |
|---|
| 57 | t/pmc/packfileannotations.t .... |
|---|
| 58 | 1..17 |
|---|
| 59 | ok 1 - PackfileAnnotations created |
|---|
| 60 | not ok 2 - PackfileAnnotations unpack failed to load test file - error loading packfile: Unable to open filehandle from path 't/pmc/testlib/annotations.pbc' |
|---|
| 61 | ok 3 #skip PackfileAnnotations unpack tests failed |
|---|
| 62 | ok 4 #skip PackfileAnnotations unpack tests failed |
|---|
| 63 | ok 5 #skip PackfileAnnotations unpack tests failed |
|---|
| 64 | ok 6 #skip PackfileAnnotations unpack tests failed |
|---|
| 65 | ok 7 #skip PackfileAnnotations unpack tests failed |
|---|
| 66 | ok 8 #skip PackfileAnnotations unpack tests failed |
|---|
| 67 | ok 9 #skip PackfileAnnotations unpack tests failed |
|---|
| 68 | ok 10 - PackfileAnnotations unpacked |
|---|
| 69 | ok 11 - Annotations were unpack correctly |
|---|
| 70 | ok 12 - First annotation's name unpacked |
|---|
| 71 | ok 13 - First annotation's value is correct |
|---|
| 72 | ok 14 - Second annotation's name unpacked |
|---|
| 73 | ok 15 - Second annotation's value is correct |
|---|
| 74 | ok 16 - Third annotation is correct |
|---|
| 75 | ok 17 - Forth annotation is correct |
|---|
| 76 | Failed 1/17 subtests |
|---|
| 77 | (less 7 skipped subtests: 9 okay) |
|---|
| 78 | t/pmc/packfileconstanttable.t .. |
|---|
| 79 | 1..16 |
|---|
| 80 | not ok 1 - PackfileConstantTable - error loading packfile: Unable to open filehandle from path 't/pmc/testlib/number.pbc' |
|---|
| 81 | not ok 2 - PackfileConstantTable.elements returns non-zero - error loading packfile: Unable to open filehandle from path 't/pmc/testlib/number.pbc' |
|---|
| 82 | not ok 3 - PackfileConstantTable.get_*_int works - error loading packfile: Unable to open filehandle from path 't/pmc/testlib/number.pbc' |
|---|
| 83 | ok 4 - Empty PackfileConstantTable created |
|---|
| 84 | ok 5 - String element added |
|---|
| 85 | ok 6 - Number elements added |
|---|
| 86 | ok 7 - PMC elements added |
|---|
| 87 | ok 8 - First element is string |
|---|
| 88 | ok 9 - Second element is number |
|---|
| 89 | ok 10 - Third element is PMC |
|---|
| 90 | ok 11 - get_or_create_constant returs same string value for same key |
|---|
| 91 | ok 12 - get_or_create_constant returs different string values for different keys |
|---|
| 92 | ok 13 - get_or_create_constant returs same number value for same key |
|---|
| 93 | ok 14 - get_or_create_constant returs different number values for different keys |
|---|
| 94 | ok 15 - get_or_create_constant returns same index for equal PMCs |
|---|
| 95 | ok 16 - get_or_create_constant returns different index for different PMCs |
|---|
| 96 | Failed 3/16 subtests |
|---|
| 97 | t/pmc/packfiledirectory.t ...... |
|---|
| 98 | 1..20 |
|---|
| 99 | ok 1 - The object isa PackfileDirectory |
|---|
| 100 | ok 2 - Owner of fresh segment unknown |
|---|
| 101 | ok 3 - Owner of segment set correctly |
|---|
| 102 | ok 4 - PackfileDirectory.get_directory isa PackfileDirectory |
|---|
| 103 | not ok 5 - PackfileDirectory.elements - error loading packfile: Unable to open filehandle from path 't/pmc/testlib/number.pbc' |
|---|
| 104 | not ok 6 - can't run get_iter tests - error loading packfile: Unable to open filehandle from path 't/pmc/testlib/number.pbc' |
|---|
| 105 | ok 7 #skip can't run get_iter tests |
|---|
| 106 | ok 8 #skip can't run get_iter tests |
|---|
| 107 | ok 9 #skip can't run get_iter tests |
|---|
| 108 | ok 10 #skip can't run get_iter tests |
|---|
| 109 | ok 11 #skip can't run get_iter tests |
|---|
| 110 | ok 12 #skip can't run get_iter tests |
|---|
| 111 | ok 13 #skip can't run get_iter tests |
|---|
| 112 | ok 14 #skip can't run get_iter tests |
|---|
| 113 | ok 15 #skip can't run get_iter tests |
|---|
| 114 | ok 16 #skip can't run get_iter tests |
|---|
| 115 | ok 17 #skip can't run get_iter tests |
|---|
| 116 | not ok 18 - Segment with old name was added - error loading packfile: Unable to open filehandle from path 't/pmc/testlib/number.pbc' |
|---|
| 117 | not ok 19 - New segment added - error loading packfile: Unable to open filehandle from path 't/pmc/testlib/number.pbc' |
|---|
| 118 | not ok 20 - segment deleted - error loading packfile: Unable to open filehandle from path 't/pmc/testlib/number.pbc' |
|---|
| 119 | Failed 5/20 subtests |
|---|
| 120 | (less 11 skipped subtests: 4 okay) |
|---|
| 121 | t/pmc/packfilefixupentry.t ..... |
|---|
| 122 | 1..3 |
|---|
| 123 | not ok 1 - PackfileFixupTable - error loading packfile: Unable to open filehandle from path 't/pmc/testlib/number.pbc' |
|---|
| 124 | not ok 2 - PackfileFixupEntry - error loading packfile: Unable to open filehandle from path 't/pmc/testlib/number.pbc' |
|---|
| 125 | not ok 3 - Got entries - error loading packfile: Unable to open filehandle from path 't/pmc/testlib/number.pbc' |
|---|
| 126 | Failed 3/3 subtests |
|---|
| 127 | t/pmc/packfilefixuptable.t ..... |
|---|
| 128 | 1..3 |
|---|
| 129 | not ok 1 - All elements of Table are Entries - error loading packfile: Unable to open filehandle from path 't/pmc/testlib/number.pbc' |
|---|
| 130 | ok 2 #skip All elements of Table are Entries |
|---|
| 131 | ok 3 #skip All elements of Table are Entries |
|---|
| 132 | Failed 1/3 subtests |
|---|
| 133 | (less 2 skipped subtests: 0 okay) |
|---|
| 134 | t/pmc/packfilerawsegment.t ..... |
|---|
| 135 | 1..7 |
|---|
| 136 | not ok 1 - PackfileRawSegment contains some data - error loading packfile: Unable to open filehandle from path 't/pmc/testlib/number.pbc' |
|---|
| 137 | not ok 2 - PackfileRawSegment.get_integer_keyed_int returns some data - error loading packfile: Unable to open filehandle from path 't/pmc/testlib/number.pbc' |
|---|
| 138 | ok 3 - PackfileRawSegment.push_integer (1) |
|---|
| 139 | ok 4 - PackfileRawSegment.push_integer (2) |
|---|
| 140 | not ok 5 - can't run test_type tests - error loading packfile: Unable to open filehandle from path 't/pmc/testlib/number.pbc' |
|---|
| 141 | ok 6 #skip can't run test_type tests |
|---|
| 142 | ok 7 #skip can't run test_type tests |
|---|
| 143 | Failed 3/7 subtests |
|---|
| 144 | (less 2 skipped subtests: 2 okay) |
|---|
| 145 | t/pmc/packfilesegment.t ........ |
|---|
| 146 | 1..1 |
|---|
| 147 | ok 1 - The object isa PackfileSegment |
|---|
| 148 | ok |
|---|
| 149 | |
|---|
| 150 | Test Summary Report |
|---|
| 151 | ------------------- |
|---|
| 152 | t/pmc/packfile.t (Wstat: 0 Tests: 42 Failed: 14) |
|---|
| 153 | Failed tests: 12-21, 23-25, 40 |
|---|
| 154 | t/pmc/packfileannotations.t (Wstat: 0 Tests: 17 Failed: 1) |
|---|
| 155 | Failed test: 2 |
|---|
| 156 | t/pmc/packfileconstanttable.t (Wstat: 0 Tests: 16 Failed: 3) |
|---|
| 157 | Failed tests: 1-3 |
|---|
| 158 | t/pmc/packfiledirectory.t (Wstat: 0 Tests: 20 Failed: 5) |
|---|
| 159 | Failed tests: 5-6, 18-20 |
|---|
| 160 | t/pmc/packfilefixupentry.t (Wstat: 0 Tests: 3 Failed: 3) |
|---|
| 161 | Failed tests: 1-3 |
|---|
| 162 | t/pmc/packfilefixuptable.t (Wstat: 0 Tests: 3 Failed: 1) |
|---|
| 163 | Failed test: 1 |
|---|
| 164 | t/pmc/packfilerawsegment.t (Wstat: 0 Tests: 7 Failed: 3) |
|---|
| 165 | Failed tests: 1-2, 5 |
|---|
| 166 | Files=9, Tests=114, 3 wallclock secs ( 0.30 usr 0.12 sys + 0.53 cusr 0.38 csys = 1.33 CPU) |
|---|
| 167 | Result: FAIL |
|---|