summary refs log tree commit diff stats
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
parent9c2365d5c2229f327d19262894995047a357e252 (diff)
downloadNim-534601637a9189354c92532c0ef273a89153092d.tar.gz
more tests fixed
-rw-r--r--lib/nimrtl.nim1
-rw-r--r--testament/categories.nim1
-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
6 files changed, 24 insertions, 5 deletions
diff --git a/lib/nimrtl.nim b/lib/nimrtl.nim
index 4e4cf7e0e..335207f54 100644
--- a/lib/nimrtl.nim
+++ b/lib/nimrtl.nim
@@ -33,4 +33,3 @@ when not defined(createNimRtl):
 import
   parseutils, strutils, parseopt, parsecfg, strtabs, unicode, pegs, ropes,
   os, osproc, times
-
diff --git a/testament/categories.nim b/testament/categories.nim
index 4bc2607cd..36f2a271a 100644
--- a/testament/categories.nim
+++ b/testament/categories.nim
@@ -531,7 +531,6 @@ proc processCategory(r: var TResults, cat: Category, options: string) =
   else:
     var testsRun = 0
     for name in os.walkFiles("tests" & DirSep &.? cat.string / "t*.nim"):
-      echo name
       testSpec r, makeTest(name, options, cat)
       inc testsRun
     if testsRun == 0:
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