summary refs log tree commit diff stats
path: root/tests/stdlib/tmemfiles2.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/stdlib/tmemfiles2.nim')
-rw-r--r--tests/stdlib/tmemfiles2.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/stdlib/tmemfiles2.nim b/tests/stdlib/tmemfiles2.nim
index 7ea94cffc..d6cfa533a 100644
--- a/tests/stdlib/tmemfiles2.nim
+++ b/tests/stdlib/tmemfiles2.nim
@@ -4,9 +4,10 @@ discard """
 Half read size: 10 Data: Hello'''
 """
 import memfiles, os
+const
+  fn = "test.mmap"
 var
   mm, mm_full, mm_half: MemFile
-  fn = "test.mmap"
   p: pointer
 
 if fileExists(fn): removeFile(fn)