Bug 889102 - Use a dynamic port in test_dbgglobal.js so that the xpcshell tests can be run concurrently. r=past

This commit is contained in:
Mihnea Dobrescu-Balaur 2013-07-09 09:09:16 -04:00
parent 8dbbf8faf0
commit 74f5cef19c

View File

@ -9,7 +9,7 @@ function run_test()
// Should get an exception if we try to interact with DebuggerServer
// before we initialize it...
check_except(function() {
DebuggerServer.openListener(2929);
DebuggerServer.openListener(-1);
});
check_except(DebuggerServer.closeListener);
check_except(DebuggerServer.connectPipe);
@ -20,7 +20,7 @@ function run_test()
// These should still fail because we haven't added a createRootActor
// implementation yet.
check_except(function() {
DebuggerServer.openListener(2929);
DebuggerServer.openListener(-1);
});
check_except(DebuggerServer.closeListener);
check_except(DebuggerServer.connectPipe);
@ -28,7 +28,7 @@ function run_test()
DebuggerServer.addActors("resource://test/testactors.js");
// Now they should work.
DebuggerServer.openListener(2929);
DebuggerServer.openListener(-1);
DebuggerServer.closeListener();
// Make sure we got the test's root actor all set up.