1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-09 08:58:35 +03:00

StrCaseCmp_Ascii_Tests: comfychair.TestCase.runcmd has changed to

return both stdout and stderr.  Update to account for this.
(This used to be commit 843c36143e07aa66b36014a35846143807676a10)
This commit is contained in:
Martin Pool 2003-04-04 03:20:24 +00:00
parent c9d9c7021d
commit 2323b1b52d

View File

@ -33,7 +33,7 @@ def signum(a):
class StrCaseCmp_Ascii_Tests(comfychair.TestCase):
"""String comparisons in simple ASCII"""
def run_strcmp(self, a, b, expect):
out = self.runcmd('t_strcmp \"%s\" \"%s\"' % (a, b))
out, err = self.runcmd('t_strcmp \"%s\" \"%s\"' % (a, b))
if signum(int(out)) != expect:
self.fail("comparison failed:\n"
" a=%s\n"