Skip to content

Commit

Permalink
Merge #2720
Browse files Browse the repository at this point in the history
2720: chores(tests) Switched to test-log as test-env-log is deprecated r=Amanieu a=ptitSeb

# Description

Switches to test-log as test-env-log is deprecated



Co-authored-by: ptitSeb <[email protected]>
  • Loading branch information
bors[bot] and ptitSeb authored Dec 13, 2021
2 parents f839af0 + eeec916 commit a79876b
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 19 deletions.
22 changes: 11 additions & 11 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ compiler-test-derive = { path = "tests/lib/compiler-test-derive" }
tempfile = "3.1"
loupe = "0.1"
# For logging tests using the `RUST_LOG=debug` when testing
test-env-log = { version = "0.2", default-features = false, features = ["trace"] }
test-log = { version = "0.2", default-features = false, features = ["trace"] }
tracing = { version = "0.1", default-features = false, features = ["log"] }
tracing-subscriber = { version = "0.3", default-features = false, features = ["env-filter", "fmt"] }

Expand Down
2 changes: 1 addition & 1 deletion tests/lib/compiler-test-derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ pub fn compiler_test(attrs: TokenStream, input: TokenStream) -> TokenStream {
new_sig.ident = test_name;
new_sig.inputs = ::syn::punctuated::Punctuated::new();
let f = quote! {
#[test_env_log::test]
#[test_log::test]
#attrs
#[cfg(feature = #engine_feature_name)]
#new_sig {
Expand Down
12 changes: 6 additions & 6 deletions tests/lib/compiler-test-derive/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ gen_tests! {
#[cfg(feature = "singlepass")]
mod singlepass {
use super::*;
#[test_env_log::test]
#[test_log::test]
#[cold]
#[cfg(feature = "universal")]
fn universal() {
Expand All @@ -63,7 +63,7 @@ gen_tests! {
crate::Compiler::Singlepass
))
}
#[test_env_log::test]
#[test_log::test]
#[cold]
#[cfg(feature = "dylib")]
fn dylib() {
Expand All @@ -77,7 +77,7 @@ gen_tests! {
#[cfg(feature = "cranelift")]
mod cranelift {
use super::*;
#[test_env_log::test]
#[test_log::test]
#[cold]
#[cfg(feature = "universal")]
fn universal() {
Expand All @@ -86,7 +86,7 @@ gen_tests! {
crate::Compiler::Cranelift
))
}
#[test_env_log::test]
#[test_log::test]
#[cold]
#[cfg(feature = "dylib")]
fn dylib() {
Expand All @@ -100,7 +100,7 @@ gen_tests! {
#[cfg(feature = "llvm")]
mod llvm {
use super::*;
#[test_env_log::test]
#[test_log::test]
#[cold]
#[cfg(feature = "universal")]
fn universal() {
Expand All @@ -109,7 +109,7 @@ gen_tests! {
crate::Compiler::LLVM
))
}
#[test_env_log::test]
#[test_log::test]
#[cold]
#[cfg(feature = "dylib")]
fn dylib() {
Expand Down

0 comments on commit a79876b

Please sign in to comment.