Commit b24b49d8 by zhanyong.wan

Fixes a typo in run_tests.py and its test (by Vlad Losev).

parent e68adf5c
...@@ -191,7 +191,7 @@ class TestRunner(object): ...@@ -191,7 +191,7 @@ class TestRunner(object):
if self.subprocess: if self.subprocess:
return self.subprocess.Popen(args).wait() return self.subprocess.Popen(args).wait()
else: else:
return self.os.spawn(self.os.P_WAIT, args[0], args) return self.os.spawnv(self.os.P_WAIT, args[0], args)
def RunBinaryTest(self, test): def RunBinaryTest(self, test):
"""Runs the binary test script given its path relative to the gtest root. """Runs the binary test script given its path relative to the gtest root.
......
...@@ -124,7 +124,7 @@ class FakeOs(object): ...@@ -124,7 +124,7 @@ class FakeOs(object):
assert self.path.isdir(path) assert self.path.isdir(path)
return self.path.PathElement(path).iterkeys() return self.path.PathElement(path).iterkeys()
def spawn(self, wait, executable, *kargs): def spawnv(self, wait, executable, *kargs):
assert wait == FakeOs.P_WAIT assert wait == FakeOs.P_WAIT
return self.spawn_impl(executable, kargs) return self.spawn_impl(executable, kargs)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment