Closed Bug 918445 Opened 11 years ago Closed 11 years ago

mach xpcshell-test with --debugger=gdb is broken

Categories

(Testing :: XPCShell Harness, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 917440

People

(Reporter: jdm, Unassigned)

Details

Sigh.

 0:00.12 Traceback (most recent call last):
  File "/run/media/jdm/ssd/mozilla-central/testing/xpcshell/runxpcshelltests.py", line 145, in run
    self.run_test()
  File "/run/media/jdm/ssd/mozilla-central/testing/xpcshell/runxpcshelltests.py", line 586, in run_test
    stdout, stderr = self.communicate(proc)
  File "/run/media/jdm/ssd/mozilla-central/testing/xpcshell/runxpcshelltests.py", line 203, in communicate
    line = proc.stdout.readline()
AttributeError: 'NoneType' object has no attribute 'readline'

Error running mach:

    ['xpcshell-test', 'netwerk/test/unit/test_alternate_source_channel.js', '--debugger=gdb']

The error occurred in code that was called by the mach command. This is either
a bug in the called code itself or in the way that mach is calling it.

You should consider filing a bug for this issue.

If filing a bug, please include the full output of mach, including this error
message.

The details of the failure are as follows:

AttributeError: 'NoneType' object has no attribute 'readline'

  File "/run/media/jdm/ssd/mozilla-central/testing/xpcshell/mach_commands.py", line 237, in run_xpcshell_test
    return xpcshell.run_test(**params)
  File "/run/media/jdm/ssd/mozilla-central/testing/xpcshell/mach_commands.py", line 105, in run_test
    return self._run_xpcshell_harness(**args)
  File "/run/media/jdm/ssd/mozilla-central/testing/xpcshell/mach_commands.py", line 190, in _run_xpcshell_harness
    result = xpcshell.runTests(**filtered_args)
  File "/run/media/jdm/ssd/mozilla-central/testing/xpcshell/runxpcshelltests.py", line 1441, in runTests
    raise exceptions[0]
This can be fixed by putting a null check before http://hg.mozilla.org/mozilla-central/rev/3c7913e853b8#l2.53.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.