Click here to Skip to main content
15,885,953 members
Articles / Programming Languages / C++

Simulating Memory Allocation Failure for Unit Testing in C++

Rate me:
Please Sign up or sign in to vote.
4.40/5 (11 votes)
16 Feb 20044 min read 55.8K   370   18  
How to test code against failure of operator new.

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

No alternatives have been posted.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Architect
India India
A programmer by heart since 1998. Written code in C++, Java, JavaScript, Python & Ruby, Worked on Stack Development to Web Development. Data Specialist with SQL and NoSQL DBs

Comments and Discussions