bug 480016 - JavaScript Test - add expectExitCode(6) to flag passing condition, patch by jorendorff, r=bclary
git-svn-id: svn://10.0.0.236/trunk@256319 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
cc8f909738
commit
ce7cb9b973
@ -59,15 +59,15 @@ function test()
|
||||
}
|
||||
else
|
||||
{
|
||||
timeout(3);
|
||||
// call reportCompare early here to get a result.
|
||||
// the test will fail if the timeout does not terminate
|
||||
// and the test is forced to TIMED OUT.
|
||||
expectExitCode(6);
|
||||
timeout(0.01);
|
||||
// Call reportCompare early here to get a result. The test will fail if
|
||||
// the timeout doesn't work and the test framework is forced to terminate
|
||||
// the test.
|
||||
reportCompare(expect, actual, summary);
|
||||
|
||||
while(1);
|
||||
while(1);
|
||||
}
|
||||
|
||||
|
||||
exitFunc ('test');
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user