<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:small"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jul 11, 2019 at 10:10 PM Michael Moese <<a href="mailto:mmoese@suse.de">mmoese@suse.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail_default" style="font-size:small">...</span><br>
+<br>
+static void setup(void)<br>
+{<br>
+ tst_fzsync_pair_init(&fzsync_pair);<br>
+ tst_taint_init(TST_TAINT_W | TST_TAINT_D);<br>
+ snd_fd = SAFE_OPEN(<span class="gmail_default" style="font-size:small"></span>"/dev/snd/timer",<br>
+ O_RDONLY|O_CREAT|O_NOCTTY|O_SYNC|O_LARGEFILE, 0);<br></blockquote><div><br></div><div><div class="gmail_default" style="font-size:small">Should we check if the file exists before opening it? </div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Otherwise, snd_timer01 failed as:</div><div class="gmail_default" style="font-size:small"><br></div># ./snd_timer01 <br>tst_test.c:1100: INFO: Timeout per run is 0h 05m 00s<br>safe_macros.c:225: BROK: snd_timer01.c:73: open(/dev/snd/timer,1052992,00) failed: ENOENT<br><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"># lsmod |grep -i snd</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"># grep -i snd /boot/config-4.18.0-107.el8.s390x </div><div class="gmail_default" style="font-size:small"><br></div># ls /dev/snd/timer<br>ls: cannot access '/dev/snd/timer': No such file or directory<br><div class="gmail_default" style="font-size:small"> <br></div></div></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Regards,<br></div><div>Li Wang<br></div></div></div></div>