Cxbx-Reloaded / xbox_kernel_test_suite

Xbox kernel APIs tester written using nxdk
GNU General Public License v3.0
22 stars 6 forks source link

Fixed initialization order of output file #92

Closed ergo720 closed 7 months ago

ergo720 commented 7 months ago

I noticed that the test suite is currently attempting to write to the output file even before it's created. It happens from the function load_conf_file, which internally has a call to print, which in turn attempts to write to the output file with write_to_output_file. But at that point it doesn't yet exist, because the call to open_output_file that creates it only happens after load_conf_file has finished. So basically, it just needs to swap the order of those two calls