// Copyright 2020 the V8 project authors. All rights reserved.// Use of this source code is governed by a BSD-style license that can be// found in the LICENSE file.functioncheck_test_results(tests,status){letfailed_counter=0;for(lettestoftests){constPASS=0;constFAIL=1;constTIMEOUT=2;constNOTRUN=3;constPRECONDITION_FAILED=4;if(test.status!==PASS){console.log();if(test.status===FAIL){console.log("Test failed");}elseif(test.status===TIMEOUT){console.log("Timeout");}elseif(test.status===NOTRUN){console.log("Test did not run");}elseif(test.status===PRECONDITION_FAILED){console.log("Test precondition failed");}else{console.log("Unknown error code:",test.status);}console.log("Message:");console.log(test.message);console.log("Stack trace:");console.log(test.stack);failed_counter++;}}setTimeout(()=>assertEquals(0,failed_counter));}add_completion_callback(check_test_results);setup(()=>{},{'explicit_done':true});