|
1 | 1 | #![deny(warnings)] |
2 | 2 | #![allow(clippy::match_like_matches_macro)] |
3 | 3 |
|
4 | | -extern crate ctest2 as ctest; |
5 | | - |
6 | 4 | use std::fs::File; |
7 | 5 | use std::io::{BufRead, BufReader, BufWriter, Write}; |
8 | 6 | use std::path::{Path, PathBuf}; |
@@ -75,8 +73,8 @@ fn do_ctest() { |
75 | 73 | } |
76 | 74 | } |
77 | 75 |
|
78 | | -fn ctest_cfg() -> ctest::TestGenerator { |
79 | | - let mut cfg = ctest::TestGenerator::new(); |
| 76 | +fn ctest_cfg() -> ctest_old::TestGenerator { |
| 77 | + let mut cfg = ctest_old::TestGenerator::new(); |
80 | 78 | let libc_cfgs = ["libc_thread_local"]; |
81 | 79 | for f in &libc_cfgs { |
82 | 80 | cfg.cfg(f, None); |
@@ -3479,7 +3477,7 @@ fn test_neutrino(target: &str) { |
3479 | 3477 | }); |
3480 | 3478 |
|
3481 | 3479 | cfg.volatile_item(|i| { |
3482 | | - use ctest::VolatileItemKind::*; |
| 3480 | + use ctest_old::VolatileItemKind::*; |
3483 | 3481 | match i { |
3484 | 3482 | // The following fields are volatie but since we cannot express that in |
3485 | 3483 | // Rust types, we have to explicitly tell the checker about it here: |
@@ -3602,7 +3600,7 @@ fn test_neutrino(target: &str) { |
3602 | 3600 | fn test_vxworks(target: &str) { |
3603 | 3601 | assert!(target.contains("vxworks")); |
3604 | 3602 |
|
3605 | | - let mut cfg = ctest::TestGenerator::new(); |
| 3603 | + let mut cfg = ctest_old::TestGenerator::new(); |
3606 | 3604 | headers! { cfg: |
3607 | 3605 | "vxWorks.h", |
3608 | 3606 | "yvals.h", |
@@ -3705,7 +3703,7 @@ fn test_vxworks(target: &str) { |
3705 | 3703 | cfg.generate(src_hotfix_dir().join("lib.rs"), "ctest_output.rs"); |
3706 | 3704 | } |
3707 | 3705 |
|
3708 | | -fn config_gnu_bits(target: &str, cfg: &mut ctest::TestGenerator) { |
| 3706 | +fn config_gnu_bits(target: &str, cfg: &mut ctest_old::TestGenerator) { |
3709 | 3707 | let pointer_width = env::var("CARGO_CFG_TARGET_POINTER_WIDTH").unwrap_or_default(); |
3710 | 3708 | if target.contains("gnu") |
3711 | 3709 | && target.contains("linux") |
@@ -4894,7 +4892,7 @@ fn test_linux(target: &str) { |
4894 | 4892 | }); |
4895 | 4893 |
|
4896 | 4894 | cfg.volatile_item(|i| { |
4897 | | - use ctest::VolatileItemKind::*; |
| 4895 | + use ctest_old::VolatileItemKind::*; |
4898 | 4896 | match i { |
4899 | 4897 | // aio_buf is a volatile void** but since we cannot express that in |
4900 | 4898 | // Rust types, we have to explicitly tell the checker about it here: |
@@ -5215,7 +5213,7 @@ fn test_haiku(target: &str) { |
5215 | 5213 | cfg.flag("-Wno-deprecated-declarations"); |
5216 | 5214 | cfg.define("__USE_GNU", Some("1")); |
5217 | 5215 | cfg.define("_GNU_SOURCE", None); |
5218 | | - cfg.language(ctest::Lang::CXX); |
| 5216 | + cfg.language(ctest_old::Lang::CXX); |
5219 | 5217 |
|
5220 | 5218 | // POSIX API |
5221 | 5219 | headers! { cfg: |
@@ -5835,7 +5833,7 @@ fn test_aix(target: &str) { |
5835 | 5833 | }); |
5836 | 5834 |
|
5837 | 5835 | cfg.volatile_item(|i| { |
5838 | | - use ctest::VolatileItemKind::*; |
| 5836 | + use ctest_old::VolatileItemKind::*; |
5839 | 5837 | match i { |
5840 | 5838 | // 'aio_buf' is of type 'volatile void**' but since we cannot |
5841 | 5839 | // express that in Rust types, we have to explicitly tell the |
|
0 commit comments