summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2018-12-30 08:06:11 +0800
committerJohn Hodge <tpg@mutabah.net>2018-12-30 08:06:11 +0800
commit8a1ed074f96357b32f8079aa30c5700bf4f51bd1 (patch)
tree11806bd5bfbd5739f556de49e5004c0437946501
parent6fb11a5af19b91557dba1ca853599596622f56df (diff)
downloadmrust-8a1ed074f96357b32f8079aa30c5700bf4f51bd1.tar.gz
Test harness - Fix harness for 1.29
-rw-r--r--src/expand/test_harness.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/expand/test_harness.cpp b/src/expand/test_harness.cpp
index 204ca75e..f720cac7 100644
--- a/src/expand/test_harness.cpp
+++ b/src/expand/test_harness.cpp
@@ -81,6 +81,11 @@ void Expand_TestHarness(::AST::Crate& crate)
}
desc_vals.push_back({ {}, "should_panic", mv$(should_panic_val) });
}
+ if( TARGETVER_1_29 )
+ {
+ // TODO: Get this from attributes
+ desc_vals.push_back({ {}, "allow_fail", NEWNODE(_Bool, false) });
+ }
auto desc_expr = NEWNODE(_StructLiteral, ::AST::Path("test", { ::AST::PathNode("TestDesc")}), nullptr, mv$(desc_vals));
::AST::ExprNode_StructLiteral::t_values descandfn_vals;