aboutsummaryrefslogtreecommitdiffstats
path: root/atuin-common/src/utils.rs
diff options
context:
space:
mode:
authorEllie Huxtable <ellie@elliehuxtable.com>2024-02-05 10:28:55 +0100
committerGitHub <noreply@github.com>2024-02-05 09:28:55 +0000
commit6a2576fc5bb2b60df3ad0563d594d6742e27532b (patch)
tree9e8b957f3dc6450df06ff1998fe5b3a2cb5ba863 /atuin-common/src/utils.rs
parentfix: correct download list for incremental builds (#1672) (diff)
downloadatuin-6a2576fc5bb2b60df3ad0563d594d6742e27532b.zip
chore(ci): run rust build/test/check on 3 platforms (#1675)
* chore(ci): run rust build/test/check on 3 platforms * need to properly test windows * do not need to strip here, and windows has a suffix anyway
Diffstat (limited to 'atuin-common/src/utils.rs')
-rw-r--r--atuin-common/src/utils.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/atuin-common/src/utils.rs b/atuin-common/src/utils.rs
index 889c7811..1e0f5a9a 100644
--- a/atuin-common/src/utils.rs
+++ b/atuin-common/src/utils.rs
@@ -147,6 +147,7 @@ mod tests {
use std::collections::HashSet;
+ #[cfg(not(windows))]
#[test]
fn test_dirs() {
// these tests need to be run sequentially to prevent race condition
@@ -169,7 +170,9 @@ mod tests {
fn test_config_dir() {
env::set_var("HOME", "/home/user");
env::remove_var("XDG_CONFIG_HOME");
+
assert_eq!(config_dir(), PathBuf::from("/home/user/.config/atuin"));
+
env::remove_var("HOME");
}