summaryrefslogtreecommitdiff
path: root/librpc/wscript_build
diff options
context:
space:
mode:
authorGary Lockyer <gary@catalyst.net.nz>2019-12-02 15:54:08 +1300
committerAndrew Bartlett <abartlet@samba.org>2019-12-04 05:10:31 +0000
commitbf8063e369a227eecc902f90277fc59d9d0ad167 (patch)
treefeddbf8b1a0f80f17acd48560d16fc9b352a514d /librpc/wscript_build
parent7127a615cbd742695cea5865533c1ee7098ecc10 (diff)
downloadsamba-bf8063e369a227eecc902f90277fc59d9d0ad167.tar.gz
librpc ndr: Tests for ndr_pull_string
Tests to ensure that ndr_pull_string handles zero and one byte length data correctly for both character strings and UTF-16 strings. Bug: https://bugzilla.samba.org/show_bug.cgi?id=13874 Signed-off-by: Gary Lockyer <gary@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'librpc/wscript_build')
-rw-r--r--librpc/wscript_build11
1 files changed, 11 insertions, 0 deletions
diff --git a/librpc/wscript_build b/librpc/wscript_build
index 2582a281139..88964ed2a9a 100644
--- a/librpc/wscript_build
+++ b/librpc/wscript_build
@@ -664,3 +664,14 @@ bld.SAMBA_SUBSYSTEM('NDR_FSRVP_STATE',
source='gen_ndr/ndr_fsrvp_state.c',
public_deps='ndr'
)
+#
+# Cmocka tests
+#
+bld.SAMBA_BINARY('test_ndr_string',
+ source='tests/test_ndr_string.c',
+ deps='''
+ cmocka
+ talloc
+ ndr
+ ''',
+ for_selftest=True)