summaryrefslogtreecommitdiff
path: root/t/chainlint/return-loop.test
diff options
context:
space:
mode:
Diffstat (limited to 't/chainlint/return-loop.test')
-rw-r--r--t/chainlint/return-loop.test6
1 files changed, 6 insertions, 0 deletions
diff --git a/t/chainlint/return-loop.test b/t/chainlint/return-loop.test
new file mode 100644
index 0000000..f90b171
--- /dev/null
+++ b/t/chainlint/return-loop.test
@@ -0,0 +1,6 @@
+while test $i -lt $((num - 5))
+do
+# LINT: "|| return {n}" valid loop escape outside subshell; no "&&" needed
+ git notes add -m "notes for commit$i" HEAD~$i || return 1
+ i=$((i + 1))
+done