summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorArne Döring <arne.doering@gmx.net>2018-11-16 12:43:05 +0100
committerAraq <rumpf_a@web.de>2018-11-23 11:58:29 +0100
commit534601637a9189354c92532c0ef273a89153092d (patch)
treec4793d10398c5ededb12eb1bfe257bd652b1124d /tests
parent9c2365d5c2229f327d19262894995047a357e252 (diff)
downloadNim-534601637a9189354c92532c0ef273a89153092d.tar.gz
more tests fixed
Diffstat (limited to 'tests')
-rw-r--r--tests/osproc/ta_in.nim4
-rw-r--r--tests/stdlib/tmemlinesBuf.nim10
-rw-r--r--tests/stdlib/tnativesockets.nim5
-rw-r--r--tests/stdlib/tparsopt.nim8
4 files changed, 24 insertions, 3 deletions
diff --git a/tests/osproc/ta_in.nim b/tests/osproc/ta_in.nim
index b46890f6e..fb294ec14 100644
--- a/tests/osproc/ta_in.nim
+++ b/tests/osproc/ta_in.nim
@@ -1,3 +1,7 @@
+discard """
+action: compile
+"""
+
 # This file is prefixed with an "a", because other tests
 # depend on it and it must be compiled first.
 import strutils
diff --git a/tests/stdlib/tmemlinesBuf.nim b/tests/stdlib/tmemlinesBuf.nim
index 9fa68cf02..aadca4c61 100644
--- a/tests/stdlib/tmemlinesBuf.nim
+++ b/tests/stdlib/tmemlinesBuf.nim
@@ -1,6 +1,14 @@
+discard """
+output: "14"
+"""
+
 import memfiles
 var inp = memfiles.open("tests/stdlib/tmemlinesBuf.nim")
 var buffer: TaintedString = ""
+var lineCount = 0
 for line in lines(inp, buffer):
-  echo("#" & line & "#")
+  lineCount += 1
+
 close(inp)
+
+echo lineCount
diff --git a/tests/stdlib/tnativesockets.nim b/tests/stdlib/tnativesockets.nim
index c683647bc..c2738b8a5 100644
--- a/tests/stdlib/tnativesockets.nim
+++ b/tests/stdlib/tnativesockets.nim
@@ -1,3 +1,7 @@
+discard """
+outputsub: ""
+"""
+
 import nativesockets, unittest
 
 suite "nativesockets":
@@ -5,4 +9,3 @@ suite "nativesockets":
     let hostname = getHostname()
     check hostname.len > 0
     check hostname.len < 64
-
diff --git a/tests/stdlib/tparsopt.nim b/tests/stdlib/tparsopt.nim
index 848fba2da..948bc8d5f 100644
--- a/tests/stdlib/tparsopt.nim
+++ b/tests/stdlib/tparsopt.nim
@@ -1,4 +1,10 @@
-# Test the new parseopt module
+discard """
+disabled: true
+"""
+
+# this file has a type in the name, and it does not really test
+# parseopt module, because tester has no support to set arguments. Test the
+# new parseopt module. Therefore it is disabled.
 
 import
   parseopt