Re: [JGIT PATCH v2 00/11] WindowCache rewrite... with tests

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



onsdag 29 april 2009 20:54:37 skrev "Shawn O. Pearce" <spearce@xxxxxxxxxxx>:
> 9-11 is the rewrite of WindowCache, with new unit tests to get higher
> levels of coverage in this section of the code.  Actually doing
> better is really hard, as we'd need to cause thread race conditions
> deep within critical sections.  The only way I can think to do that
> is to add injection points where we can insert "evil other thread"
> logic during the unit test, and rely on the JIT to compile them
> out in normal application usage.  Ick.  Its also quite fragile.

Testing *is* hard. No news here. There are various techniques for 
injecting code using AOP (AspjectJ) that may be useful for testing,
since we could inject failures that way without the overhead of
injection points in normal execution. 

-- robin
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]