summaryrefslogtreecommitdiff
path: root/devel/bmake/files/unit-tests/posix.exp
diff options
context:
space:
mode:
Diffstat (limited to 'devel/bmake/files/unit-tests/posix.exp')
-rw-r--r--devel/bmake/files/unit-tests/posix.exp23
1 files changed, 23 insertions, 0 deletions
diff --git a/devel/bmake/files/unit-tests/posix.exp b/devel/bmake/files/unit-tests/posix.exp
new file mode 100644
index 00000000000..7e74cabadfb
--- /dev/null
+++ b/devel/bmake/files/unit-tests/posix.exp
@@ -0,0 +1,23 @@
+Posix says we should execute the command as if run by system(3)
+Expect 'Hello,' and 'World!'
+Hello,
+World!
+a command
+a command prefixed by '+' executes even with -n
+another command
+make -n
+echo a command
+echo "a command prefixed by '+' executes even with -n"
+a command prefixed by '+' executes even with -n
+echo another command
+make -n -j1
+{ echo a command
+} || exit $?
+echo "a command prefixed by '+' executes even with -n"
+a command prefixed by '+' executes even with -n
+{ echo another command
+} || exit $?
+Now we expect an error...
+*** Error code 1 (continuing)
+`all' not remade because of errors.
+exit status 0