prove (#if target.threaded ...) is still broken

This commit is contained in:
2022-10-09 18:38:34 +00:00
parent f5789abff4
commit b29dfed368
2 changed files with 14 additions and 1 deletions

View File

@@ -379,6 +379,14 @@ class BasicTestCase extends Test {
function testArraysToVariadic() { function testArraysToVariadic() {
_testArraysToVariadic(); _testArraysToVariadic();
} }
function testThreadingSupportCheck() {
#if target.threaded
Assert.isTrue(_hasThreadSupport());
#else
Assert.isFalse(_hasThreadSupport());
#end
}
} }
class BasicObject { class BasicObject {

View File

@@ -721,4 +721,9 @@ From:[(assert false (+ \"false \" \"should \" \"have \" \"been \" \"true\"))]" m
(assertThrows (>= a)) (assertThrows (>= a))
) )
(Assert.pass)) (Assert.pass))
(function _hasThreadSupport []
(#if target.threaded
true
false))