add new signal tests
[fleet.git] / tests / flags / signal-1-from-outbox-to-outbox.test.test
diff --git a/tests/flags/signal-1-from-outbox-to-outbox.test.test b/tests/flags/signal-1-from-outbox-to-outbox.test.test
new file mode 100644 (file)
index 0000000..1ef3599
--- /dev/null
@@ -0,0 +1,21 @@
+// expected output
+#expect 1
+
+#ship debug        : Debug
+#ship fifo         : Fifo
+#ship fifo2        : Fifo
+
+debug.in:
+  [*] take, deliver;
+
+fifo2.out:
+  literal 2;
+  load repeat counter with 1;
+  wait;
+  setflags a=c, b=b;
+  [a]  literal 1;
+  [!a] literal 0;
+  sendto debug.in;
+
+fifo.out:
+  notify fifo2.out:1;