aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/build/script/parser+diag.test.testscript
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2022-11-24 18:09:35 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2022-11-25 14:15:43 +0300
commit472d6d0e49c0114f46ff31267d09acdbf9fba421 (patch)
tree9edfc26e77edabee872c625eb5b96e845b7b4654 /libbuild2/build/script/parser+diag.test.testscript
parentf8408539216cc213fa780560b7396af8ba801e2e (diff)
Use operation name as a buildscript name if unable to deduce
Diffstat (limited to 'libbuild2/build/script/parser+diag.test.testscript')
-rw-r--r--libbuild2/build/script/parser+diag.test.testscript18
1 files changed, 8 insertions, 10 deletions
diff --git a/libbuild2/build/script/parser+diag.test.testscript b/libbuild2/build/script/parser+diag.test.testscript
index a720fe2..504c9a4 100644
--- a/libbuild2/build/script/parser+diag.test.testscript
+++ b/libbuild2/build/script/parser+diag.test.testscript
@@ -19,6 +19,14 @@ $* <<EOI >>EOO
name: echo
EOO
+: name-operation
+:
+$* <<EOI >>EOO
+ a = 'b'
+ EOI
+ name: update
+ EOO
+
: preamble
:
{
@@ -141,16 +149,6 @@ $* <<EOI >>EOO
info: consider specifying it explicitly with the 'diag' recipe attribute
info: or provide custom low-verbosity diagnostics with the 'diag' builtin
EOE
-
- : none
- :
- $* <<EOI 2>>EOE != 0
- a = 'b'
- EOI
- buildfile:11:1: error: unable to deduce low-verbosity script diagnostics name
- info: consider specifying it explicitly with the 'diag' recipe attribute
- info: or provide custom low-verbosity diagnostics with the 'diag' builtin
- EOE
}
: inside-if