From 4d4bf76067435ab8ee023cd79d453fcb9aafcef9 Mon Sep 17 00:00:00 2001
From: ferrieux <ferrieux@users.sourceforge.net>
Date: Wed, 2 May 2012 21:15:20 +0000
Subject: Explicitly declare a channel nonblocking before throwing EAGAIN on
 write.

---
 tests/ioCmd.test | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/ioCmd.test b/tests/ioCmd.test
index 6b1da73..56a9228 100644
--- a/tests/ioCmd.test
+++ b/tests/ioCmd.test
@@ -1214,6 +1214,7 @@ test iocmd-24.15 {chan write, EAGAIN means that writing is not allowed at this t
 	error EAGAIN
     }
     set c [chan create {r w} foo]
+    fconfigure $c -blocking 0
 } -body {
     note [puts -nonewline $c ABC ; flush $c]
     set res
@@ -2566,6 +2567,7 @@ test iocmd.tf-24.15 {chan write, EAGAIN means that writing is not allowed at thi
 	error EAGAIN
     }
     set c [chan create {r w} foo]
+    fconfigure $c -blocking 0
 } -body {
     notes [inthread $c {
 	note [puts -nonewline $c ABC ; flush $c]
@@ -2593,6 +2595,7 @@ test iocmd.tf-24.16 {chan write, note the background flush setup by close due to
 	error EAGAIN
     }
     set c [chan create {r w} foo]
+    fconfigure $c -blocking 0
 } -body {
     notes [inthread $c {
 	note [puts -nonewline $c ABC ; flush $c]
-- 
cgit v0.12