All,
llvm-lit blanks the environment during testing, adding back only those
variables explicitly provided during configuration (through lit.cfg or
lit.site.cfg or others).
Normally this causes no issues, but under emulation, sqlite3 will fail
verification because it attempts to find the home directory of the user
running the test. It does this by using getpwuid, which does not work
under emulation, and prints an error that breaks the diff step.
Fortunately, it uses the HOME env variable as a backup, so this patch
adds a step to lit.cfg that adds the HOME env variable to the test
environment if it exists in the host environment.
Chad