summaryrefslogtreecommitdiffstats
path: root/tests/unixNotfy.test
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2018-05-27 16:32:05 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2018-05-27 16:32:05 (GMT)
commitf2ec60553a7e3f8cc433362a672fa9eea014b332 (patch)
treeaae3b61f0377d6541a1f78db5d2ced74881c2e59 /tests/unixNotfy.test
parentb91a2765aef7499e3bf0ca35d47c6dc068c35ed6 (diff)
parentbb5d24622ffab4d7e6aaf6dba2086cdc870f8470 (diff)
downloadtcl-f2ec60553a7e3f8cc433362a672fa9eea014b332.zip
tcl-f2ec60553a7e3f8cc433362a672fa9eea014b332.tar.gz
tcl-f2ec60553a7e3f8cc433362a672fa9eea014b332.tar.bz2
merge 8.7
Diffstat (limited to 'tests/unixNotfy.test')
-rw-r--r--tests/unixNotfy.test9
1 files changed, 2 insertions, 7 deletions
diff --git a/tests/unixNotfy.test b/tests/unixNotfy.test
index 18b967f..0bd8c69 100644
--- a/tests/unixNotfy.test
+++ b/tests/unixNotfy.test
@@ -18,16 +18,11 @@ if {[lsearch [namespace children] ::tcltest] == -1} {
# When run in a Tk shell, these tests hang.
testConstraint noTk [expr {0 != [catch {package present Tk}]}]
testConstraint thread [expr {0 == [catch {package require Thread 2.7-}]}]
-# Darwin always uses a threaded notifier
-testConstraint unthreaded [expr {
- ![::tcl::pkgconfig get threaded]
- && $tcl_platform(os) ne "Darwin"
-}]
# The next two tests will hang if threads are enabled because the notifier
# will not necessarily wait for ever in this case, so it does not generate
# an error.
-test unixNotfy-1.1 {Tcl_DeleteFileHandler} -constraints {noTk unix unthreaded} -body {
+test unixNotfy-1.1 {Tcl_DeleteFileHandler} -constraints nonPortable -body {
catch {vwait x}
set f [open [makeFile "" foo] w]
fileevent $f writable {set x 1}
@@ -38,7 +33,7 @@ test unixNotfy-1.1 {Tcl_DeleteFileHandler} -constraints {noTk unix unthreaded} -
catch { close $f }
catch { removeFile foo }
}
-test unixNotfy-1.2 {Tcl_DeleteFileHandler} -constraints {noTk unix unthreaded} -body {
+test unixNotfy-1.2 {Tcl_DeleteFileHandler} -constraints nonPortable -body {
catch {vwait x}
set f1 [open [makeFile "" foo] w]
set f2 [open [makeFile "" foo2] w]