diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2021-05-14 15:33:17 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-14 15:33:17 -0700 |
commit | 2ce592a209f4cd7f59c009a01e4ac4037e63a7bd (patch) | |
tree | d715b1a8e9c4875f5b88ecc54dfb312570a5fc8e | |
parent | 97970d9dccb24bb290cdba14275acae62602c832 (diff) | |
download | Nim-2ce592a209f4cd7f59c009a01e4ac4037e63a7bd.tar.gz |
refs #18011 disable some newly failing tests on cpp windows; refs #17946 increase timeout for tchannels (#18012)
-rw-r--r-- | lib/system.nim | 8 | ||||
-rw-r--r-- | tests/cpp/temitlist.nim | 4 | ||||
-rw-r--r-- | tests/cpp/tempty_generic_obj.nim | 4 | ||||
-rw-r--r-- | tests/exception/tcpp_imported_exc.nim | 4 | ||||
-rw-r--r-- | tests/stdlib/tchannels.nim | 2 |
5 files changed, 14 insertions, 8 deletions
diff --git a/lib/system.nim b/lib/system.nim index 9317c3440..be30665dd 100644 --- a/lib/system.nim +++ b/lib/system.nim @@ -1317,10 +1317,10 @@ proc del*[T](x: var seq[T], i: Natural) {.noSideEffect.} = ## ## See also: ## * `delete <#delete,seq[T],Natural>`_ for preserving the order - ## - ## .. code-block:: Nim - ## var i = @[1, 2, 3, 4, 5] - ## i.del(2) # => @[1, 2, 5, 4] + runnableExamples: + var a = @[10, 11, 12, 13, 14] + a.del(2) + assert a == @[10, 11, 14, 13] let xl = x.len - 1 movingCopy(x[i], x[xl]) setLen(x, xl) diff --git a/tests/cpp/temitlist.nim b/tests/cpp/temitlist.nim index 852537518..d446176fa 100644 --- a/tests/cpp/temitlist.nim +++ b/tests/cpp/temitlist.nim @@ -1,7 +1,9 @@ discard """ targets: "cpp" - output: '''6.0 + output: ''' +6.0 0''' +disabled: "windows" # pending bug #18011 """ # bug #4730 diff --git a/tests/cpp/tempty_generic_obj.nim b/tests/cpp/tempty_generic_obj.nim index 913c1ec3c..6125190b4 100644 --- a/tests/cpp/tempty_generic_obj.nim +++ b/tests/cpp/tempty_generic_obj.nim @@ -1,7 +1,9 @@ discard """ targets: "cpp" - output: '''int + output: ''' +int float''' +disabled: "windows" # pending bug #18011 """ import typetraits diff --git a/tests/exception/tcpp_imported_exc.nim b/tests/exception/tcpp_imported_exc.nim index 8b96ca635..5195b48e7 100644 --- a/tests/exception/tcpp_imported_exc.nim +++ b/tests/exception/tcpp_imported_exc.nim @@ -1,6 +1,7 @@ discard """ targets: "cpp" -output: '''caught as std::exception +output: ''' +caught as std::exception expected finally1 finally2 @@ -12,6 +13,7 @@ finally 2 expected cpp exception caught ''' +disabled: "windows" # pending bug #18011 """ type diff --git a/tests/stdlib/tchannels.nim b/tests/stdlib/tchannels.nim index d609eec78..492faf500 100644 --- a/tests/stdlib/tchannels.nim +++ b/tests/stdlib/tchannels.nim @@ -1,5 +1,5 @@ discard """ - timeout: 20.0 # but typically < 1s (in isolation but other tests running in parallel can affect this since based on epochTime) + timeout: 60.0 # but typically < 1s (in isolation but other tests running in parallel can affect this since based on epochTime) disabled: "freebsd" matrix: "--gc:arc --threads:on; --gc:arc --threads:on -d:danger" """ |