aboutsummaryrefslogtreecommitdiffstats
path: root/.extras/test-logic.sh
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-07-13 11:06:29 +0200
committerDanilo M. <danix@danix.xyz>2026-07-13 11:06:29 +0200
commit11153a8775c08ef4559cb31664615fa9c4e158a2 (patch)
treecdb828218bc4d19822575429d13e3bfdf5bd1065 /.extras/test-logic.sh
parent7c7e549ffdcd4532534b776e289301b3e4fc8dde (diff)
downloadsbo-slackbuilds-11153a8775c08ef4559cb31664615fa9c4e158a2.tar.gz
sbo-slackbuilds-11153a8775c08ef4559cb31664615fa9c4e158a2.zip
test-build: fix empty-order corruption when all deps dropped
Diffstat (limited to '.extras/test-logic.sh')
-rw-r--r--.extras/test-logic.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/.extras/test-logic.sh b/.extras/test-logic.sh
index 841793b..a05e990 100644
--- a/.extras/test-logic.sh
+++ b/.extras/test-logic.sh
@@ -98,6 +98,13 @@ apply_overrides_to_order
kept=""; for x in "${RESOLVED_ORDER[@]}"; do kept+="$(basename "$x") "; done
kept="${kept% }"
[[ "$kept" == "keepme" ]] && ok "drop removes from order" || bad "drop failed, order=[$kept]"
+
+# all entries dropped -> RESOLVED_ORDER must be truly empty (not one "" element)
+OV_DROP=([dropme]=1 [keepme]=1)
+RESOLVED_ORDER=("$T/cat/dropme" "$T/cat/keepme")
+apply_overrides_to_order
+[[ ${#RESOLVED_ORDER[@]} -eq 0 ]] && ok "all-dropped -> empty order" || bad "all-dropped left ${#RESOLVED_ORDER[@]} elem(s): [${RESOLVED_ORDER[*]}]"
+OV_DROP=()
rm -f "$OV"
# overrides only apply on current; on 15.0 they are a no-op