tests: add test_exec_ls
authorJean Privat <jean@pryen.org>
Sat, 4 Jul 2009 13:39:13 +0000 (09:39 -0400)
committerJean Privat <jean@pryen.org>
Sat, 4 Jul 2009 13:39:13 +0000 (09:39 -0400)
Since example_exec_ls was unverifiable.

Signed-off-by: Jean Privat <jean@pryen.org>

tests/sav/test_exec_ls.sav [new file with mode: 0644]
tests/test_exec_ls.nit [new file with mode: 0644]

diff --git a/tests/sav/test_exec_ls.sav b/tests/sav/test_exec_ls.sav
new file mode 100644 (file)
index 0000000..41964e8
--- /dev/null
@@ -0,0 +1,2 @@
+test_exec_ls.nit
+0
diff --git a/tests/test_exec_ls.nit b/tests/test_exec_ls.nit
new file mode 100644 (file)
index 0000000..f0b0fa6
--- /dev/null
@@ -0,0 +1,19 @@
+# This file is part of NIT ( http://www.nitlanguage.org ).
+#
+# Copyright 2004-2009 Jean Privat <jean@pryen.org>
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+var p = new Process("ls", "test_exec_ls.nit")
+p.wait
+print(p.status)