summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkjnash <k.j.nash@usa.net>2020-08-22 04:04:05 (GMT)
committerkjnash <k.j.nash@usa.net>2020-08-22 04:04:05 (GMT)
commitd753cbc0882bfbff59e9b14da03e67fb76d73add (patch)
treed99caa11fa40b2dee51ca7639510f0709ecb1a46
parent4b9763f5f70210ad03fefd51d9f7b388309afcae (diff)
parent1971f6ab14ff7b267507deb6e4090bc41e807c21 (diff)
downloadtcl-d753cbc0882bfbff59e9b14da03e67fb76d73add.zip
tcl-d753cbc0882bfbff59e9b14da03e67fb76d73add.tar.gz
tcl-d753cbc0882bfbff59e9b14da03e67fb76d73add.tar.bz2
Merge 8.6
-rw-r--r--.travis.yml7
-rw-r--r--generic/tclIO.c2
-rw-r--r--generic/tclInt.h2
-rw-r--r--tests/event.test5
-rw-r--r--tests/io.test11
-rw-r--r--win/tclWinPort.h4
6 files changed, 18 insertions, 13 deletions
diff --git a/.travis.yml b/.travis.yml
index 1a991c4..fc9d618 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,4 +1,3 @@
-sudo: false
language: c
addons:
apt:
@@ -10,11 +9,7 @@ addons:
- gcc-mingw-w64-i686
- gcc-mingw-w64-x86-64
- gcc-multilib
- homebrew:
- packages:
- - libtommath
- update: true
-matrix:
+jobs:
include:
# Testing on Linux with various compilers
- name: "Linux/GCC/Shared"
diff --git a/generic/tclIO.c b/generic/tclIO.c
index 7abeb68..82eb581 100644
--- a/generic/tclIO.c
+++ b/generic/tclIO.c
@@ -7699,7 +7699,7 @@ Tcl_BadChannelOption(
}
Tcl_ResetResult(interp);
errObj = Tcl_ObjPrintf("bad option \"%s\": should be one of ",
- optionName);
+ optionName ? optionName : "");
argc--;
for (i = 0; i < argc; i++) {
Tcl_AppendPrintfToObj(errObj, "-%s, ", argv[i]);
diff --git a/generic/tclInt.h b/generic/tclInt.h
index 1e90b70..317ae1f 100644
--- a/generic/tclInt.h
+++ b/generic/tclInt.h
@@ -1682,7 +1682,7 @@ typedef struct Command {
#define CMD_COMPILES_EXPANDED 0x08
#define CMD_REDEF_IN_PROGRESS 0x10
#define CMD_VIA_RESOLVER 0x20
-#define CMD_DEAD 0x30
+#define CMD_DEAD 0x40
/*
diff --git a/tests/event.test b/tests/event.test
index b42909c..70d4cff 100644
--- a/tests/event.test
+++ b/tests/event.test
@@ -23,11 +23,12 @@ testConstraint testfilehandler [llength [info commands testfilehandler]]
testConstraint testexithandler [llength [info commands testexithandler]]
testConstraint testfilewait [llength [info commands testfilewait]]
testConstraint exec [llength [info commands exec]]
-
+testConstraint notOSX [expr {$::tcl_platform(os) ne "Darwin"}]
+
test event-1.1 {Tcl_CreateFileHandler, reading} -setup {
testfilehandler close
set result ""
-} -constraints testfilehandler -body {
+} -constraints {testfilehandler notOSX} -body {
testfilehandler create 0 readable off
testfilehandler clear 0
testfilehandler oneevent
diff --git a/tests/io.test b/tests/io.test
index 685394c..18636c1 100644
--- a/tests/io.test
+++ b/tests/io.test
@@ -6871,7 +6871,7 @@ test io-50.5 {testing handler deletion vs reentrant calls} -constraints {testcha
} -cleanup {
close $f
} -result [list {del calling recursive} {del deleted notcalled} \
- {del deleted myself} {del after recursive}]
+ {del deleted myself} {del after recursive}]
test io-50.6 {testing handler deletion vs reentrant calls} -constraints {testchannelevent testservicemode} -setup {
file delete $path(test1)
} -body {
@@ -6880,6 +6880,7 @@ test io-50.6 {testing handler deletion vs reentrant calls} -constraints {testcha
proc first {f} {
variable u
variable z
+ variable done
if {"$u" == "toplevel"} {
lappend z "first called"
set u first
@@ -6887,6 +6888,7 @@ test io-50.6 {testing handler deletion vs reentrant calls} -constraints {testcha
vwait z
after cancel $timer
lappend z "first after toplevel"
+ set done 1
} else {
lappend z "first called not toplevel"
}
@@ -6908,19 +6910,24 @@ test io-50.6 {testing handler deletion vs reentrant calls} -constraints {testcha
}
set z ""
set u toplevel
+ set done 0
testservicemode 0
set f [open $path(test1) r]
testchannelevent $f add readable [namespace code [list second $f]]
testchannelevent $f add readable [namespace code [list first $f]]
testservicemode 1
update
+ if {!$done} {
+ set timer2 [after 200 set done 1]
+ vwait done
+ after cancel $timer2
+ }
set z
} -cleanup {
close $f
} -result [list {first called} {first called not toplevel} \
{second called, first time} {second called, second time} \
{first after toplevel}]
-
test io-51.1 {Test old socket deletion on Macintosh} {socket} {
set x 0
set result ""
diff --git a/win/tclWinPort.h b/win/tclWinPort.h
index 5aa02f0..3d61a39 100644
--- a/win/tclWinPort.h
+++ b/win/tclWinPort.h
@@ -45,7 +45,9 @@ typedef DWORD_PTR * PDWORD_PTR;
/*
* Ask for the winsock function typedefs, also.
*/
-#define INCL_WINSOCK_API_TYPEDEFS 1
+#ifndef INCL_WINSOCK_API_TYPEDEFS
+# define INCL_WINSOCK_API_TYPEDEFS 1
+#endif
#include <winsock2.h>
#include <ws2tcpip.h>
#ifdef HAVE_WSPIAPI_H