"""Blackbox tests for ndrdump."""
import os
+import re
from samba.tests import BlackboxTestCase, BlackboxProcessError
for p in ["../../../../../source4/librpc/tests",
except BlackboxProcessError as e:
self.fail(e)
+ # Filter out the C source file and line number
+ regex = rb"\.\./\.\./librpc/ndr/ndr\.c:[0-9]+"
+ actual = re.sub(regex, b"", actual)
+ expected = re.sub(regex, b"", expected)
+
self.assertEqual(actual, expected)
# Test a print of NULL pointer in manually-written ndr_drsuapi.c