Skip to content

Commit

Permalink
Check for sequencer read/write access before test
Browse files Browse the repository at this point in the history
Fixes #718
  • Loading branch information
arkq committed Jun 5, 2024
1 parent 5d8c71c commit 4b0ec2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test-alsa-midi.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ int main(int argc, char *argv[]) {

/* Check whether current host supports ALSA sequencer. If not, then
* there is no point in running this test, because it will fail. */
if (access("/dev/snd/seq", F_OK) != 0) {
if (access("/dev/snd/seq", F_OK | R_OK | W_OK) != 0) {
warn("ALSA sequencer not available, skipping test!");
return 77 /* magic number for skipping tests */;
}
Expand Down

0 comments on commit 4b0ec2e

Please sign in to comment.