blob: 775d5e248c4b69685c8e74ab0ef394c704ec07b5 [file] [log] [blame]
! cue cmd cycle
cmp stderr expect-stderr1
! cue cmd aftercycle
cmp stderr expect-stderr2
cue cmd interlockedTasks
cmp stdout interlocked-stdout
cmp stderr expect-stderr3
-- expect-stderr1 --
cyclic dependency in tasks
-- expect-stderr2 --
command.aftercycle: structural cycle
-- expect-stderr3 --
-- interlocked-stdout --
v
v
-- after_tool.cue --
package home
import (
"tool/cli"
)
command: interlockedTasks: {
t1: cli.Print & { text: t2.value, value: "v" }
t2: cli.Print & { text: t1.value, value: "v" }
}
command: aftercycle: {
t1: cli.Print & { $after: t2, text: "t1" }
t2: cli.Print & { $after: t1, text: "t2" }
}
command: cycle: {
t1: cli.Print & { text: t2.text }
t2: cli.Print & { text: t1.text }
}