aboutsummaryrefslogtreecommitdiffstats
path: root/testing/elixir/fix_system_cmd_test.patch
diff options
context:
space:
mode:
authorMarlus Saraiva <marlus.saraiva@gmail.com>2015-03-13 14:06:28 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-03-16 09:47:06 +0000
commitf4df16b0308bc6e1f0fae786ce56ca40c33cc6d0 (patch)
tree5162c4f6767fab91bf25c13daa11b3371efb1dee /testing/elixir/fix_system_cmd_test.patch
parenta423d083072c162c940fa827ce773df83dc17a72 (diff)
downloadaports-f4df16b0308bc6e1f0fae786ce56ca40c33cc6d0.tar.bz2
aports-f4df16b0308bc6e1f0fae786ce56ca40c33cc6d0.tar.xz
testing/elixir: new aport
Elixir is a dynamic, functional language designed for building scalable and maintainable applications http://elixir-lang.org
Diffstat (limited to 'testing/elixir/fix_system_cmd_test.patch')
-rw-r--r--testing/elixir/fix_system_cmd_test.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/testing/elixir/fix_system_cmd_test.patch b/testing/elixir/fix_system_cmd_test.patch
new file mode 100644
index 0000000000..be852a5ce8
--- /dev/null
+++ b/testing/elixir/fix_system_cmd_test.patch
@@ -0,0 +1,20 @@
+--- ./lib/elixir/test/elixir/system_test.exs.orig
++++ ./lib/elixir/test/elixir/system_test.exs
+@@ -63,7 +63,7 @@ defmodule SystemTest do
+ assert {"hello\n", 0} = System.cmd "echo", ["hello"]
+
+ opts = [into: [], cd: System.cwd!, env: %{"foo" => "bar"},
+- arg0: "hecho", stderr_to_stdout: true, parallelism: true]
++ arg0: "echo", stderr_to_stdout: true, parallelism: true]
+ assert {["hello\n"], 0} = System.cmd "echo", ["hello"], opts
+
+ with_tmp_dir(fn dir ->
+@@ -73,7 +73,7 @@ defmodule SystemTest do
+
+ File.cd!(dir)
+ assert :enoent = catch_error(System.cmd("echo2", ["hello"]))
+- assert {"hello\n", 0} = System.cmd(Path.join([System.cwd, "echo2"]), ["hello"])
++ assert {"hello\n", 0} = System.cmd(Path.join([System.cwd, "echo2"]), ["hello"], [{:arg0, "echo"}])
+ end)
+ end
+