I have a C program which uses malloc
(it could also have been C++ with new
). I would like to test my program and simulate an "out of memory" scenario.
I would prefer running my program from within a bash or sh shell environment but anything within linux could be possible.
How do I make dynamic memory allocations fail for a program run?
Aucun commentaire:
Enregistrer un commentaire