On Monday, August 21, 2017 at 2:39:06 PM UTC+8, Jack Firth wrote:
> On Sunday, August 20, 2017 at 6:28:20 PM UTC-7, Alex Harsanyi wrote:
> > I just noticed that the GUI test runner displays "test did not clean up 
> > resources" messages on my tests, but it is not clear to me what resources 
> > are not being cleaned up.  
> > 
> > I tried to reproduce the problem in the following test case:
> > 
> >     #lang racket
> >     (require rackunit rackunit/gui db)
> > 
> >     (define ts
> >       (test-suite
> >        "test suite"
> >        (test-case
> >         "test-case"
> >         (check-not-exn
> >          (lambda ()
> >            (define db (sqlite3-connect #:database 'memory #:mode 'create))
> >            (disconnect db))))))
> > 
> >     (test/gui ts)
> > 
> > Here, a sqlite database is created in memory than the connection is closed. 
> >  The test runner complains that the data base connection is not cleaned up. 
> >  It also complains about a thread not being cleaned up, but the test does 
> > not create any threads (at least not explicitly).   See attached picture 
> > for details.
> > 
> > Can someone explain to me how to clean up properly in such a test?
> > 
> > Thanks,
> > Alex.
> 
> Which version of racket are you using? And if you're using 6.10, do you get 
> the same message on any older versions of racket?

I'm using Racket 6.9 on Windows 10, 64bit, but I get the same messages with 
Racket 6.10 (I just upgraded to test this).

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to