summaryrefslogtreecommitdiffstats
path: root/vendor/unwinding/tests
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/unwinding/tests')
-rw-r--r--vendor/unwinding/tests/compile_tests.rs20
1 files changed, 20 insertions, 0 deletions
diff --git a/vendor/unwinding/tests/compile_tests.rs b/vendor/unwinding/tests/compile_tests.rs
new file mode 100644
index 000000000..26a5697da
--- /dev/null
+++ b/vendor/unwinding/tests/compile_tests.rs
@@ -0,0 +1,20 @@
+use std::process::Command;
+
+#[test]
+fn main() {
+ let dir = env!("CARGO_MANIFEST_DIR");
+
+ let tests = [
+ "throw_and_catch",
+ "catch_std_exception",
+ "std_catch_exception",
+ ];
+
+ for test in tests {
+ let status = Command::new("./check.sh")
+ .current_dir(format!("{dir}/test_crates/{test}"))
+ .status()
+ .unwrap();
+ assert!(status.success());
+ }
+}