aboutsummaryrefslogtreecommitdiff
path: root/tests/Ltest-nomalloc.c
diff options
context:
space:
mode:
authorArun Sharma <aruns@google.com>2009-03-15 11:24:43 -0700
committerArun Sharma <aruns@google.com>2009-03-16 21:34:48 -0700
commit576b59e4b15ddf2f2d3f17036b9c2f43c7504777 (patch)
treeae313c6d7b99b81d85d49a6b68475031d9e50a2f /tests/Ltest-nomalloc.c
parenta2c27a4ab724cf129cf956df4c6fb779bd2f5366 (diff)
downloadlibunwind-576b59e4b15ddf2f2d3f17036b9c2f43c7504777.tar.gz
Verify that we don't call malloc when unwinding locally.
Diffstat (limited to 'tests/Ltest-nomalloc.c')
-rw-r--r--tests/Ltest-nomalloc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/Ltest-nomalloc.c b/tests/Ltest-nomalloc.c
new file mode 100644
index 00000000..74d63312
--- /dev/null
+++ b/tests/Ltest-nomalloc.c
@@ -0,0 +1,5 @@
+#define UNW_LOCAL_ONLY
+#include <libunwind.h>
+#if !defined(UNW_REMOTE_ONLY)
+#include "Gtest-nomalloc.c"
+#endif