tests: add zzz_tests for limits (run them if you wish)
authorJean Privat <jean@pryen.org>
Sat, 13 Jun 2015 02:10:01 +0000 (22:10 -0400)
committerJean Privat <jean@pryen.org>
Tue, 16 Jun 2015 18:16:25 +0000 (14:16 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

tests/zzz_tests/zzz_test_filelimit.nit [new file with mode: 0644]
tests/zzz_tests/zzz_test_realtimelimit.nit [new file with mode: 0644]
tests/zzz_tests/zzz_test_reslimit.nit [new file with mode: 0644]
tests/zzz_tests/zzz_test_usertimelimit.nit [new file with mode: 0644]

diff --git a/tests/zzz_tests/zzz_test_filelimit.nit b/tests/zzz_tests/zzz_test_filelimit.nit
new file mode 100644 (file)
index 0000000..02d7075
--- /dev/null
@@ -0,0 +1,16 @@
+# This file is part of NIT ( http://www.nitlanguage.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 f = new FileWriter.open("spam.out")
+loop f.write("SPAM\n")
diff --git a/tests/zzz_tests/zzz_test_realtimelimit.nit b/tests/zzz_tests/zzz_test_realtimelimit.nit
new file mode 100644 (file)
index 0000000..f8b03dc
--- /dev/null
@@ -0,0 +1,15 @@
+# This file is part of NIT ( http://www.nitlanguage.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.
+
+system("sleep 1h")
diff --git a/tests/zzz_tests/zzz_test_reslimit.nit b/tests/zzz_tests/zzz_test_reslimit.nit
new file mode 100644 (file)
index 0000000..ce4682e
--- /dev/null
@@ -0,0 +1,15 @@
+# This file is part of NIT ( http://www.nitlanguage.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.
+
+loop print "SPAM"
diff --git a/tests/zzz_tests/zzz_test_usertimelimit.nit b/tests/zzz_tests/zzz_test_usertimelimit.nit
new file mode 100644 (file)
index 0000000..efe8d05
--- /dev/null
@@ -0,0 +1,16 @@
+# This file is part of NIT ( http://www.nitlanguage.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.
+
+loop
+end