don't generate host-exposed functions/values in tests

This commit is contained in:
Folkert 2022-07-18 19:37:27 +02:00
parent ca38ec4eb5
commit b01709c566
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
2 changed files with 109 additions and 73 deletions

View file

@ -263,8 +263,9 @@ pub fn expect_mono_module_to_dylib<'a>(
// Verify the module
if let Err(errors) = env.module.verify() {
env.module.print_to_file("/tmp/test.ll").unwrap();
panic!(
"Errors defining module:\n{}\n\nUncomment things nearby to see more details.",
"Errors defining module:\n{}\n\nUncomment things nearby to see more details. IR written to `/tmp/test.ll`",
errors.to_string()
);
}