File: patch-socket-location-in-tests.patch

package info (click to toggle)
rust-wl-clipboard-rs 0.9.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 364 kB
  • sloc: makefile: 2
file content (12 lines) | stat: -rw-r--r-- 448 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/tests/mod.rs b/src/tests/mod.rs
index 67e46cd..9fcbabf 100644
--- a/src/tests/mod.rs
+++ b/src/tests/mod.rs
@@ -33,6 +33,7 @@ impl ClientData for ClientCounter {
 
 impl<S: Send + 'static> TestServer<S> {
     pub fn new() -> Self {
+        std::env::set_var("XDG_RUNTIME_DIR", "/tmp/");
         let mut display = Display::new().unwrap();
         let socket = ListeningSocket::bind_auto("wl-clipboard-rs-test", 0..).unwrap();