Mercurial > hgrepos > FreeBSD > ports > sysutils > local-bsdtools
comparison tests/testsetup.sh @ 604:45c47bc1f7d2
farray.sh: Moved all currently existing tests for alists into cram tests.
Removed existing tests from farray.sh -- and put them into farray-alist.t.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Wed, 18 Sep 2024 23:08:06 +0200 |
| parents | 55c024c809ca |
| children | 33df05108ba1 |
comparison
equal
deleted
inserted
replaced
| 603:d4e8474ecc8b | 604:45c47bc1f7d2 |
|---|---|
| 15 return 1 | 15 return 1 |
| 16 else | 16 else |
| 17 return 0 | 17 return 0 |
| 18 fi | 18 fi |
| 19 } | 19 } |
| 20 | |
| 21 | |
| 22 #: | |
| 23 #: Check that no global variables that hold any alist storage are left. | |
| 24 #: | |
| 25 #: Returns: | |
| 26 #: int: 0 if no unexpected storage is left, 1 otherwise | |
| 27 #: | |
| 28 check_no_alist_artifacts() { | |
| 29 # This are all _farr_alist_XXX_prefix variables | |
| 30 if set | grep -E -e '^_farr_KV_.*=' -e '^_farr_K_.*=' -e '^_farr_V_.*='; then | |
| 31 return 1 | |
| 32 else | |
| 33 return 0 | |
| 34 fi | |
| 35 } |
