summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorClement Tsang <34804052+ClementTsang@users.noreply.github.com>2020-05-04 18:53:05 -0400
committerGitHub <noreply@github.com>2020-05-04 18:53:05 -0400
commit364049ee5f7a53fca8a3b442e7222aa1d0e79274 (patch)
tree574a5ab1d8360e38569f97c6185596685bcf3312 /tests
parent1ff2606c90c0b0ce10912f03f01314e209b54574 (diff)
chore: update travis a bit for msrv
Diffstat (limited to 'tests')
-rw-r--r--tests/arg_tests.rs11
-rw-r--r--tests/invalid_config_tests.rs11
2 files changed, 2 insertions, 20 deletions
diff --git a/tests/arg_tests.rs b/tests/arg_tests.rs
index c586a798..134d9615 100644
--- a/tests/arg_tests.rs
+++ b/tests/arg_tests.rs
@@ -7,16 +7,7 @@ use std::process::Command;
//======================RATES======================//
fn get_binary_location() -> String {
- // env!("CARGO_BIN_EXE_btm").to_string()
- if cfg!(target_os = "linux") {
- "./target/x86_64-unknown-linux-gnu/debug/btm".to_string()
- } else if cfg!(target_os = "windows") {
- "./target/x86_64-pc-windows-msvc/debug/btm".to_string()
- } else if cfg!(target_os = "macos") {
- "./target/x86_64-apple-darwin/debug/btm".to_string()
- } else {
- "".to_string()
- }
+ env!("CARGO_BIN_EXE_btm").to_string()
}
#[test]
diff --git a/tests/invalid_config_tests.rs b/tests/invalid_config_tests.rs
index 0a0f69a4..34b8e06e 100644
--- a/tests/invalid_config_tests.rs
+++ b/tests/invalid_config_tests.rs
@@ -5,16 +5,7 @@ use std::process::Command;
// These tests are for testing some config file-specific options.
fn get_binary_location() -> String {
- // env!("CARGO_BIN_EXE_btm").to_string()
- if cfg!(target_os = "linux") {
- "./target/x86_64-unknown-linux-gnu/debug/btm".to_string()
- } else if cfg!(target_os = "windows") {
- "./target/x86_64-pc-windows-msvc/debug/btm".to_string()
- } else if cfg!(target_os = "macos") {
- "./target/x86_64-apple-darwin/debug/btm".to_string()
- } else {
- "".to_string()
- }
+ env!("CARGO_BIN_EXE_btm").to_string()
}
#[test]