Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nanopb/nanopb.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>2020-01-29 19:59:36 +0300
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>2020-01-29 19:59:36 +0300
commitf1319267a16cafa4e3b5db1436f3dbcb47a2354f (patch)
tree17aae84034c58a83ebd998c3044101a0d3d06b92 /tests/regression
parent6a85a167488e3f580b3376e3112f03aa42667f87 (diff)
Fix compilation error on platforms without uint8_t, add test. (#485)
Diffstat (limited to 'tests/regression')
-rw-r--r--tests/regression/issue_485/SConscript11
-rw-r--r--tests/regression/issue_485/uint8.expected3
2 files changed, 14 insertions, 0 deletions
diff --git a/tests/regression/issue_485/SConscript b/tests/regression/issue_485/SConscript
new file mode 100644
index 0000000..f2d7692
--- /dev/null
+++ b/tests/regression/issue_485/SConscript
@@ -0,0 +1,11 @@
+# Check that the int8_t and uint8_t types are not used in the nanopb core.
+
+Import("env")
+env.Match('pb_decode_c.matched', ["$NANOPB/pb_decode.c", 'uint8.expected'])
+env.Match('pb_decode_h.matched', ["$NANOPB/pb_decode.h", 'uint8.expected'])
+env.Match('pb_encode_c.matched', ["$NANOPB/pb_encode.c", 'uint8.expected'])
+env.Match('pb_encode_h.matched', ["$NANOPB/pb_encode.h", 'uint8.expected'])
+env.Match('pb_common_c.matched', ["$NANOPB/pb_common.c", 'uint8.expected'])
+env.Match('pb_common_h.matched', ["$NANOPB/pb_common.h", 'uint8.expected'])
+env.Match('pb_h.matched', ["$NANOPB/pb.h", 'uint8.expected'])
+
diff --git a/tests/regression/issue_485/uint8.expected b/tests/regression/issue_485/uint8.expected
new file mode 100644
index 0000000..291ab81
--- /dev/null
+++ b/tests/regression/issue_485/uint8.expected
@@ -0,0 +1,3 @@
+! ^\s*[^/* ].*uint8_t
+! ^\s*[^/* ].*int8_t
+