Added a lit test that finds its corresponding crash log and checks to make sure it has asn output under Application Specific Information.
This required adding two python commands:
- get_pid_from_output: takes the output from the asan instrumentation and parses out the process ID
- print_crashreport_for_pid: takes in the pid of the process and the file name of the binary that was run and prints the contents of the corresponding crash log.
This test was added in preparation for changing the integration with crash reporter from the old api to the new api, which is implemented in a subsequent commit.
rdar://69767688
Is this a copy-paste error? This comment doesn't make sense to me because we are modifying ASAN_OPTIONS by the using the %env_asan_opts substitution.