Skip to content

Commit a62bf34

Browse files
committed
Adding more perms.
1 parent 6c4320d commit a62bf34

File tree

2 files changed

+5
-16
lines changed

2 files changed

+5
-16
lines changed

.github/workflows/rust.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ jobs:
2828
headless: weston --no-config --socket=wl-test-env --backend=headless &
2929
dependencies: |
3030
sudo apt-get install libxtst-dev libevdev-dev libudev-dev libinput-dev weston --assume-yes
31+
sudo chown root:input /dev/uinput
32+
sudo chmod g+rw /dev/uinput
33+
id -a
34+
whoami
35+
sudo usermod -aG input `whoami`
3136
ls -l -h /dev/uinput
3237
x
3338

tests/listen_and_simulate.rs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,6 @@ use std::sync::Mutex;
88
use std::thread;
99
use std::time::Duration;
1010

11-
lazy_static! {
12-
static ref EVENT_CHANNEL: (Mutex<Sender<Event>>, Mutex<Receiver<Event>>) = {
13-
let (send, recv) = channel();
14-
(Mutex::new(send), Mutex::new(recv))
15-
};
16-
}
17-
18-
fn send_event(event: Event) {
19-
EVENT_CHANNEL
20-
.0
21-
.lock()
22-
.expect("Failed to unlock Mutex")
23-
.send(event)
24-
.expect("Receiving end of EVENT_CHANNEL was closed");
25-
}
26-
2711
fn sim_then_listen(events: &mut dyn Iterator<Item = EventType>) -> Result<(), Box<dyn Error>> {
2812
let (send, recv) = channel();
2913
// spawn new thread because listen blocks

0 commit comments

Comments
 (0)