Bug 159811

Summary: Fix expectedFailErrorHandler in run-jsc-stress-tests
Product: WebKit Reporter: Csaba Osztrogonác <ossy>
Component: New BugsAssignee: Csaba Osztrogonác <ossy>
Status: RESOLVED FIXED    
Severity: Normal CC: benjamin, commit-queue, fpizlo, keith_miller, mark.lam, msaboff, ossy
Priority: P2    
Version: Other   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=159810
Attachments:
Description Flags
Patch none

Csaba Osztrogonác
Reported 2016-07-15 06:23:32 PDT
Tools/Scripts/run-jsc-stress-tests ----------------------------------- # Error handler for tests that fail exactly when they return zero exit status. def expectedFailErrorHandler Proc.new { | outp, plan | outp.puts "if test -e #{plan.failFile}" outp.puts "then" outp.puts " " + plan.successCommand outp.puts "else" outp.puts " (echo ERROR: Unexpected exit code: `cat #{plan.failFile}`) | " + redirectAndPrefixCommand(plan.name) outp.puts " " + plan.failCommand outp.puts "fi" } end When a test expected to have a non zero exit code, it uses expectedFailErrorHandler function. But its else case is buggy: plan.failFile doesn't exist in the else case, cat command fails now. (note: discovered during running test262 tests and preparing patch to bug159810)
Attachments
Patch (1.28 KB, patch)
2016-07-15 06:24 PDT, Csaba Osztrogonác
no flags
Csaba Osztrogonác
Comment 1 2016-07-15 06:24:26 PDT
Csaba Osztrogonác
Comment 2 2016-07-18 04:03:31 PDT
ping?
Csaba Osztrogonác
Comment 3 2016-07-20 00:08:30 PDT
Ping?
Yusuke Suzuki
Comment 4 2016-07-20 00:25:48 PDT
Comment on attachment 283757 [details] Patch r=me
WebKit Commit Bot
Comment 5 2016-07-20 01:51:12 PDT
Comment on attachment 283757 [details] Patch Clearing flags on attachment: 283757 Committed r203448: <http://trac.webkit.org/changeset/203448>
WebKit Commit Bot
Comment 6 2016-07-20 01:51:17 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.