skip to main | skip to sidebar

hexencodings

the blog to nowhere

Tuesday, June 03, 2008

Funny thing, I was just thinking that it's not possible to unit test C programs because, for example, a system call like read(2) just takes primitive arguments, which doesn't give you much opportunity for mocking. Then I had a small epiphany: use LD_PRELOAD to mock out external functions, including system calls.

Posted by ndronen at 4:20 PM 0 comments  

Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

About Me

My photo
ndronen
View my complete profile

Tweets

    follow me on Twitter

    Blog Archive

    • ►  2011 (1)
      • ►  April (1)
    • ►  2010 (15)
      • ►  October (1)
      • ►  August (1)
      • ►  June (1)
      • ►  May (6)
      • ►  January (6)
    • ►  2009 (47)
      • ►  December (3)
      • ►  November (9)
      • ►  October (4)
      • ►  September (6)
      • ►  August (1)
      • ►  July (2)
      • ►  June (1)
      • ►  May (2)
      • ►  April (1)
      • ►  March (10)
      • ►  February (5)
      • ►  January (3)
    • ▼  2008 (15)
      • ►  December (1)
      • ►  November (2)
      • ►  September (3)
      • ►  August (6)
      • ►  July (2)
      • ▼  June (1)
        • Funny thing, I was just thinking that it's not pos...
    • ►  2007 (15)
      • ►  June (1)
      • ►  May (1)
      • ►  April (1)
      • ►  March (5)
      • ►  February (4)
      • ►  January (3)
    • ►  2006 (24)
      • ►  December (7)
      • ►  October (16)
      • ►  September (1)

    Links

    • Photoblogs Blog
    • Jane Espenson
    • Sunset Gun
    • That Little Round-Headed Boy
    • Observations on film art and Film Art
    • Girish Shambu
    • Scanners
    • Talking Points Memo