Skip to content

Commit

Permalink
This is the second commit of an ongoing effort to remove cruft from t…
Browse files Browse the repository at this point in the history
…he test suite,

and remove the 'disabled' keyword from the testament spec.

In the first commit, we added the new knownIssue key to the testament spec,
while also adding knownIssues to many of the tests for which we could attribute an issue.

In this commit, we almost finish the task of removing the 'disabled' keyword
from the remaining tests.

Below are the changes and reasonings behind them:

Removed Due to old or removed features:

    tdatabind.nim
    texplicit_dummy_closure.nim
    tgenconstraints.nim
    tincludefile.nim
    tmodulealias.nim
    tno_gcmem_in_shared.nim
    tnotuniquename2.nim
    tscheduler.nim

Removed due to being Half Baked or Non-sensical:

    tio.nim
    tmissingnilcheck.nim
    treadafterwrite.nim
    trecmod.nim
    tunsignedcomp.nim

Removed due to not being worth the trouble:

    t5000.nim

Removed due to being redundant:

    tisop.nim

Keeping disabled, due to being unsure:

    t7894.nim - Works, but flaky, and makes CI servers grumpy.
    tdllvar.nim
    tpragmas_misc.nim

Added knownIssues - Mostly textual descriptions, due to not having a explicit issues:

    tdont_init_instantiation.nim
    titerable.nim
    toutparam.nim
    toverload_asgn2.nim
    tparsopt.nim

Re-enabled:

    tglobal.nim
    tmultim.nim
    tmultimjs.nim
    tobjpragma.nim
    toverloading_typedesc.nim

Fixed

    trectuple.nim: Fixed the line number.
    trectype.nim : Fixed to the spec.
  • Loading branch information
canelhasmateus committed Dec 11, 2021
1 parent 90a5d87 commit edce033
Show file tree
Hide file tree
Showing 30 changed files with 17 additions and 648 deletions.
2 changes: 1 addition & 1 deletion tests/assign/toverload_asgn2.nim
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
discard """
output: '''i value 88
2aa'''
disabled: "true"
knownIssue: "possible issue where result is not treated as var Concrete in passAround"
"""

import moverload_asgn2
Expand Down
95 changes: 0 additions & 95 deletions tests/bind/tdatabind.nim

This file was deleted.

25 changes: 0 additions & 25 deletions tests/closure/texplicit_dummy_closure.nim

This file was deleted.

2 changes: 1 addition & 1 deletion tests/cpp/tdont_init_instantiation.nim
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
discard """
targets: "cpp"
output: ''''''
disabled: true
knownIssue: "https://github.com/nim-lang/Nim/issues/5140"
"""

# bug #5140
Expand Down
2 changes: 1 addition & 1 deletion tests/effects/toutparam.nim
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ discard """
cmd: '''nim c --warningAsError:Uninit:on --skipCfg --skipParentCfg $file'''
errormsg: "use explicit initialization of 'x' for clarity [Uninit]"
line: 24
disabled: "true"
knownIssue: "parameter name is being clobbered "
"""

proc gah[T](x: out T) =
Expand Down
2 changes: 1 addition & 1 deletion tests/generics/toverloading_typedesc.nim
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
discard """
exitcode: 0
disabled: '''true'''
"""
import moverloading_typedesc
import tables
Expand Down
2 changes: 1 addition & 1 deletion tests/global/tglobal.nim
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
discard """
output: "in globalaux2: 10\ntotal globals: 2\nint value: 100\nstring value: second"
disabled: "true"
"""

import globalaux, globalaux2
Expand Down
2 changes: 1 addition & 1 deletion tests/iter/titerable.nim
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ discard """
8
12
'''
disabled: "true"
knownIssue: "lambda lifting support for iterToProc plugin; lambda lifting and iterators are likley to go through a bit spec definition and this will either get folded in and its a good signal to know whether we fixed something by happenstance or not."
"""

# Will eventually fix it...
Expand Down
77 changes: 0 additions & 77 deletions tests/iter/tscheduler.nim

This file was deleted.

2 changes: 1 addition & 1 deletion tests/method/tmultim.nim
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ collide: thing, unit |
do nothing
'''
joinable: false
disabled: true
"""


Expand Down
2 changes: 1 addition & 1 deletion tests/method/tmultimjs.nim
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ discard """
Hi derived!
hello
'''
disabled: true
"""


Expand Down
2 changes: 1 addition & 1 deletion tests/misc/tdllvar.nim
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
discard """
disabled: true
disabled: true
"""

import os
Expand Down
31 changes: 0 additions & 31 deletions tests/misc/tgenconstraints.nim

This file was deleted.

20 changes: 0 additions & 20 deletions tests/misc/tmissingnilcheck.nim

This file was deleted.

Loading

0 comments on commit edce033

Please sign in to comment.