test: label expected source read failures

This commit is contained in:
udo
2026-07-14 06:23:50 +00:00
parent afb17fc334
commit d7f4749f9f
3 changed files with 12 additions and 5 deletions
+1 -1
View File
@@ -64,7 +64,7 @@ fi
printf '%s\n' 'CLI(Request& context) { print("readable-source-marker"); }' >"$source_dir/unreadable.uce"
chmod 000 "$source_dir/unreadable.uce"
if unreadable_output=$(scripts/uce-cli "/$test_name/unreadable.uce" 2>&1); then
if unreadable_output=$(scripts/uce-cli --get "/$test_name/unreadable.uce" __uce_expected_source_read_failure=1 2>&1); then
echo "unreadable source unexpectedly compiled: $unreadable_output" >&2
exit 1
fi