27 Jun
2008
27 Jun
'08
1:22 p.m.
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