lucet-wasi-sdk: fix test to reflect behavior of clang-9
@@ -48,11 +48,9 @@ mod lucetc_tests {
Compiler::new(&m, OptLevel::default(), &b, h, false, &Some(v)).expect("compile empty");
let mdata = c.module_data().unwrap();
assert!(mdata.heap_spec().is_some());
- // clang creates 3 globals:
- assert_eq!(mdata.globals_spec().len(), 3);
+ // clang creates 1 global, which is not exported.:
+ assert_eq!(mdata.globals_spec().len(), 1);
assert!(mdata.globals_spec()[0].is_internal());
- assert_eq!(mdata.globals_spec()[1].export_names(), &["__heap_base"]);
- assert_eq!(mdata.globals_spec()[2].export_names(), &["__data_end"]);
assert_eq!(mdata.import_functions().len(), 0, "import functions");
assert_eq!(mdata.export_functions().len(), 0, "export functions");
