Boost logo

Boost Users :

From: Dan Thill (dgt_at_[hidden])
Date: 2008-06-27 09:22:09


> I'm looking for a way to write programs with unit tests that don't hit
> the real filesystem, so there is no cleanup necessary in the event of a
> segfault, and so that tests run fast and set up is simple.

Just an off-the-cuff response, but depending on your OS, you might be able
 to use a RAM-disk, or some memory-based filesystem. Solaris has tmpfs I
think. I believe you can still do it in Windows 2000+

http://channel9.msdn.com/forums/TechOff/19142-Microsofts-XP-RAM-Disk-Driver/)

But that might have a size limit of 32MB.

Anyways, maybe a different approach you hadn't thought of.

-Dan


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net