]> gitweb.factorcode.org Git - factor.git/commitdiff
forestdb.lib: Fix file name for test db.
authorDoug Coleman <doug.coleman@gmail.com>
Tue, 4 Nov 2014 08:19:25 +0000 (00:19 -0800)
committerDoug Coleman <doug.coleman@gmail.com>
Tue, 4 Nov 2014 08:19:45 +0000 (00:19 -0800)
extra/forestdb/lib/lib-tests.factor

index 3353c50dcc5116f003c4fa7d090210d6cbf21b69..af2b666d955702ca508801204e8acbd2fcf64777 100644 (file)
@@ -1,11 +1,12 @@
 ! Copyright (C) 2014 Doug Coleman.
 ! See http://factorcode.org/license.txt for BSD license.
 USING: accessors alien.c-types alien.data alien.strings
-combinators destructors forestdb.ffi fry io.pathnames kernel
-libc namespaces sequences tools.test ;
+combinators destructors forestdb.ffi fry io.files.temp
+io.pathnames kernel libc namespaces sequences tools.test ;
 IN: forestdb.lib
 
-CONSTANT: forestdb-test-path "resource:forestdbs/first.fdb"
+: forestdb-test-path ( -- path )
+    "forestdb-test.fdb" temp-file ;
 
 { "val123" } [
     forestdb-test-path [