From 5b1fe82f80eafeb9206f83c6951129b8b6b8b2c4 Mon Sep 17 00:00:00 2001
From: Lars Kanis <lars@greiz-reinsdorf.de>
Date: Sat, 15 Mar 2014 15:06:37 +0100
Subject: [PATCH] Fix FileStream test case.

---
 test/TC_FXFileStream.rb | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/test/TC_FXFileStream.rb b/test/TC_FXFileStream.rb
index 6f3f926..0f666b8 100755
--- a/test/TC_FXFileStream.rb
+++ b/test/TC_FXFileStream.rb
@@ -22,7 +22,7 @@ class TC_FXFileStream < Test::Unit::TestCase
 
   def test_open_existing_file
     assert_equal(FXStreamDead, @filestream.direction)
-    status = @filestream.open("README", FXStreamLoad)
+    status = @filestream.open(__FILE__, FXStreamLoad)
     assert(status)
     assert_equal(FXStreamLoad, @filestream.direction)
     status = @filestream.close
@@ -42,14 +42,14 @@ class TC_FXFileStream < Test::Unit::TestCase
 
   def test_status
     assert_equal(FXStreamOK, @filestream.status)
-    @filestream.open("README", FXStreamLoad)
+    @filestream.open(__FILE__, FXStreamLoad)
     assert_equal(FXStreamOK, @filestream.status)
     @filestream.close
     assert_equal(FXStreamOK, @filestream.status)
   end
 
   def test_position
-    @filestream.open("README", FXStreamLoad)
+    @filestream.open(__FILE__, FXStreamLoad)
     assert_equal(0, @filestream.position)
     @filestream.position = 500
     assert_equal(500, @filestream.position)
-- 
GitLab