Don't run test_escape_str without $DISPLAY set

memfd
Manos Pitsidianakis 2020-02-04 03:49:43 +02:00
parent 7d6526dede
commit 6b15c71f83
Signed by: Manos Pitsidianakis
GPG Key ID: 73627C2F690DF710
1 changed files with 4 additions and 0 deletions

View File

@ -132,6 +132,10 @@ mod tests {
#[test]
fn test_escape_str() {
if std::env::var("DISPLAY").is_err() {
return;
}
let title: &str = "& > Title τίτλος";
let body: &str = "& > Body σώμα";
notify_rust::Notification::new()