Mercurial > hgrepos > FreeBSD > ports > sysutils > local-bsdtools
comparison tests/farray-array.t @ 728:858f4208d9cb
farray.sh: Resource management by reference counting done
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Mon, 07 Oct 2024 12:36:18 +0200 |
| parents | 23f6d2993fa2 |
| children | 05a325c7d5c5 |
comparison
equal
deleted
inserted
replaced
| 727:35c29e9919ba | 728:858f4208d9cb |
|---|---|
| 1091 $ (farray_create DUP) | 1091 $ (farray_create DUP) |
| 1092 ERROR: object `DUP' already created \(value `_farr_A\?:[a-f0-9]+'\) (re) | 1092 ERROR: object `DUP' already created \(value `_farr_A\?:[a-f0-9]+'\) (re) |
| 1093 [70] | 1093 [70] |
| 1094 | 1094 |
| 1095 $ check_no_array_artifacts | 1095 $ check_no_array_artifacts |
| 1096 _farr_A_[0-9a-f]+__=0 (re) | 1096 _farr_A_[0-9a-f]+_C\=1 (re) |
| 1097 _farr_A_[0-9a-f]+__\=0 (re) | |
| 1097 [1] | 1098 [1] |
| 1098 | 1099 |
| 1099 $ farray_destroy DUP | 1100 $ farray_destroy DUP |
| 1100 $ check_no_array_artifacts | 1101 $ check_no_array_artifacts |
| 1101 | 1102 |
| 1141 $ farray_debug TEST | 1142 $ farray_debug TEST |
| 1142 DEBUG: array `TEST' has length 2 | 1143 DEBUG: array `TEST' has length 2 |
| 1143 DEBUG: its contents: | 1144 DEBUG: its contents: |
| 1144 DEBUG: 1: `i1' | 1145 DEBUG: 1: `i1' |
| 1145 DEBUG: 2: `i2' | 1146 DEBUG: 2: `i2' |
| 1146 $ _farr_destroy_object "$TEST" | 1147 $ _farr_release_object "$TEST" |
| 1147 $ check_no_array_artifacts | 1148 $ check_no_array_artifacts |
| 1148 $ (_farr_destroy_object "$TEST") | 1149 $ (_farr_release_object "$TEST") |
| 1149 ERROR: farray `_farr_A\?:([a-f0-9]+)' not created properly: no storage for token `\1' (re) | 1150 ERROR: farray `_farr_A\?:([a-f0-9]+)' not created properly: no storage for token `\1' (re) |
| 1150 [1] | 1151 [1] |
| 1151 $ TEST='' | 1152 $ TEST='' |
| 1152 $ _farr_destroy_object "$TEST" | 1153 $ _farr_release_object "$TEST" |
| 1153 $ check_no_array_artifacts | 1154 $ check_no_array_artifacts |
| 1154 | 1155 |
| 1155 | 1156 |
| 1156 Complex Debug | 1157 Complex Debug |
| 1157 ============= | 1158 ============= |
| 1158 | 1159 |
| 1159 $ farray_create TEST i1 i2 | 1160 $ farray_create TEST i1 i2 |
| 1160 $ farray_create ITEM1 i11 i22 | 1161 $ farray_create ITEM1 i11 i22 |
| 1161 This also transfers ownership | |
| 1162 $ farray_append TEST "$ITEM1" | 1162 $ farray_append TEST "$ITEM1" |
| 1163 $ farray_destroy ITEM1 | |
| 1163 $ farray_debug TEST | 1164 $ farray_debug TEST |
| 1164 DEBUG: array `TEST' has length 3 | 1165 DEBUG: array `TEST' has length 3 |
| 1165 DEBUG: its contents: | 1166 DEBUG: its contents: |
| 1166 DEBUG: 1: `i1' | 1167 DEBUG: 1: `i1' |
| 1167 DEBUG: 2: `i2' | 1168 DEBUG: 2: `i2' |
