summaryrefslogtreecommitdiffstats
path: root/CAN-binder/libs/nanopb/tests/regression/issue_205
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-05-02 18:29:37 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2017-05-02 18:29:37 +0200
commitb9e1b4435a406a8a27c078ea05dee1240e51704a (patch)
tree3bd5e75d001d0c1d57710c47375af5c8ba84c26c /CAN-binder/libs/nanopb/tests/regression/issue_205
parent0242c26c2f5dc96387bca7efb118364c800f4ee7 (diff)
Added external libraries from openXC CMake files.
Now libraries are cleanly included and built. Change-Id: Iaa85639578b55b2da8357bc438426403e2cca8de Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'CAN-binder/libs/nanopb/tests/regression/issue_205')
-rw-r--r--CAN-binder/libs/nanopb/tests/regression/issue_205/SConscript14
-rw-r--r--CAN-binder/libs/nanopb/tests/regression/issue_205/size_corruption.c12
-rw-r--r--CAN-binder/libs/nanopb/tests/regression/issue_205/size_corruption.proto11
3 files changed, 0 insertions, 37 deletions
diff --git a/CAN-binder/libs/nanopb/tests/regression/issue_205/SConscript b/CAN-binder/libs/nanopb/tests/regression/issue_205/SConscript
deleted file mode 100644
index ed8899dd..00000000
--- a/CAN-binder/libs/nanopb/tests/regression/issue_205/SConscript
+++ /dev/null
@@ -1,14 +0,0 @@
-# Check that pb_release() correctly handles corrupted size fields of
-# static arrays.
-
-Import('env', 'malloc_env')
-
-env.NanopbProto('size_corruption')
-
-p = malloc_env.Program(["size_corruption.c",
- "size_corruption.pb.c",
- "$COMMON/pb_decode_with_malloc.o",
- "$COMMON/pb_common_with_malloc.o",
- "$COMMON/malloc_wrappers.o"])
-env.RunTest(p)
-
diff --git a/CAN-binder/libs/nanopb/tests/regression/issue_205/size_corruption.c b/CAN-binder/libs/nanopb/tests/regression/issue_205/size_corruption.c
deleted file mode 100644
index 08cef457..00000000
--- a/CAN-binder/libs/nanopb/tests/regression/issue_205/size_corruption.c
+++ /dev/null
@@ -1,12 +0,0 @@
-#include "size_corruption.pb.h"
-#include <pb_decode.h>
-
-int main()
-{
- MainMessage msg = MainMessage_init_zero;
- msg.bar_count = (pb_size_t)-1;
- pb_release(MainMessage_fields, &msg);
-
- return 0;
-}
-
diff --git a/CAN-binder/libs/nanopb/tests/regression/issue_205/size_corruption.proto b/CAN-binder/libs/nanopb/tests/regression/issue_205/size_corruption.proto
deleted file mode 100644
index 6c9c2453..00000000
--- a/CAN-binder/libs/nanopb/tests/regression/issue_205/size_corruption.proto
+++ /dev/null
@@ -1,11 +0,0 @@
-syntax = "proto2";
-import 'nanopb.proto';
-
-message SubMessage {
- repeated int32 foo = 1 [(nanopb).type = FT_POINTER];
-}
-
-message MainMessage {
- repeated SubMessage bar = 1 [(nanopb).max_count = 5];
-}
-