diff options
author | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2014-12-26 17:08:17 +0200 |
---|---|---|
committer | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2014-12-26 17:08:17 +0200 |
commit | 8a28b70351baf09f2131fee2fc186a96d069cc2e (patch) | |
tree | a07c1028965032ebe438f9c4e8585dcda4f6c386 /tests/fuzztest/SConscript | |
parent | e5cbee84e12e87b342d7c57808b009387e1ba2bb (diff) |
Move malloc_wrappers.c to tests/common
Diffstat (limited to 'tests/fuzztest/SConscript')
-rw-r--r-- | tests/fuzztest/SConscript | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/fuzztest/SConscript b/tests/fuzztest/SConscript index 6499714f..346ccab8 100644 --- a/tests/fuzztest/SConscript +++ b/tests/fuzztest/SConscript @@ -5,8 +5,8 @@ Import("env") # We need our own pb_decode.o for the malloc support env = env.Clone() env.Append(CPPDEFINES = {'PB_ENABLE_MALLOC': 1, - 'PB_SYSTEM_HEADER': '\\"fuzz_syshdr.h\\"'}) -env.Append(CPPPATH = ".") + 'PB_SYSTEM_HEADER': '\\"malloc_wrappers_syshdr.h\\"'}) +env.Append(CPPPATH = [".", "$COMMON"]) if 'SYSHDR' in env: env.Append(CPPDEFINES = {'PB_OLD_SYSHDR': env['SYSHDR']}) @@ -42,8 +42,7 @@ fuzz = env.Program(["fuzztest.c", "pb_encode_with_malloc.o", "pb_decode_with_malloc.o", "pb_common_with_malloc.o", - "malloc_wrappers.c"]) -Depends([p1, p2, fuzz], ["fuzz_syshdr.h", "malloc_wrappers.h"]) + "$COMMON/malloc_wrappers.o"]) env.RunTest(fuzz) @@ -53,6 +52,6 @@ fuzzstub = env.Program(["fuzzstub.c", "pb_encode_with_malloc.o", "pb_decode_with_malloc.o", "pb_common_with_malloc.o", - "malloc_wrappers.c"]) + "$COMMON/malloc_wrappers.o"]) |