Skip to content

Commit 671a1b1

Browse files
add ignores for wit test to cpp and go
1 parent 2114f5c commit 671a1b1

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

crates/test/src/cpp.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,13 @@ impl LanguageMethods for Cpp {
4545
config: &crate::config::WitConfig,
4646
_args: &[String],
4747
) -> bool {
48+
// `issue-1598.wit` is `//@ async = true` but its codegen output
49+
// happens to compile under C++ even though the language doesn't
50+
// yet have general async support, so it must opt out of the
51+
// blanket async-rejects-verify rule below.
52+
if name == "issue-1598.wit" {
53+
return false;
54+
}
4855
return match name {
4956
"issue1514-6.wit" | "named-fixed-length-list.wit" | "map.wit" => true,
5057
_ => false,

crates/test/src/go.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ impl LanguageMethods for Go {
3030
config.error_context
3131
|| name == "async-trait-function.wit"
3232
|| name == "named-fixed-length-list.wit"
33+
|| name == "issue-1598.wit"
3334
}
3435

3536
fn default_bindgen_args_for_codegen(&self) -> &[&str] {

0 commit comments

Comments
 (0)