summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2014-11-05 11:13:18 -0500
committerAdrian Thurston <thurston@complang.org>2014-11-05 11:13:18 -0500
commit875463504d7e83f3535ed5c645eb6061a468ab85 (patch)
tree49418a32ec45733531d6f0980c2014c3a93be2d9 /test
parent4d60b029e734a59b7cbc011d532129b4fcde918b (diff)
downloadcolm-875463504d7e83f3535ed5c645eb6061a468ab85.tar.gz
added a close call to stream so we can flush it
Since streams are now pointers they, are not automatically closed when the go out of scope. The close call allows the flush to happen. Will likely call on delete, once delete is added.
Diffstat (limited to 'test')
-rw-r--r--test/open2.lm2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/open2.lm b/test/open2.lm
index 074e2ff4..54ca72fb 100644
--- a/test/open2.lm
+++ b/test/open2.lm
@@ -10,7 +10,7 @@ int testAppend( Fn: str Mode: str )
S: stream = open( Fn Mode )
send S
"colm networks
- eos
+ S->close()
}
testAppend( 'working/open2.w' ('w') )