Files
Petteri Aimonen 722ef054b8 Improve test compatibility
Get rid of the old AVR simulator extern "C" hack, because
clang warns about it. Instead use a weak symbol to resolve
the app_main() name when running a C++ main program.
2025-11-03 14:49:11 +02:00

11 lines
429 B
Python

# Test stack usage
# This test case intentionally performs access outside the legal stack area,
# so it may have to be skipped to avoid false positives on memory safety tools.
Import("env")
if not env.get("NOUNSAFE"):
env.NanopbProto(["stackusage", "stackusage.options"])
test = env.Program(["stackusage.c", "stackusage.pb.c", "$COMMON/pb_encode.o", "$COMMON/pb_decode.o", "$COMMON/pb_common.o"])
env.RunTest(test)