Skip to contentSkip to conversation

syscalls/fanotify09.c: Fix wrong group number

PATCH New Xiao Yang 3 participants 3 messages Dec 10, 2018 – Dec 11, 2018

lore
Share & tools
lore

Xiao Yang

author
#0 lore raw

PATCH 1/1 syscalls/fanotify09.c: Fix wrong group number

---
 testcases/kernel/syscalls/fanotify/fanotify09.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
testcases/kernel/syscalls/fanotify/fanotify09.c +1 -1
index 625634a..0f926c4 100644
@@ -216,7 +216,7 @@ static void test_fanotify(unsigned int n)
 		ret = read(fd_notify[i], event_buf, FAN_EVENT_METADATA_LEN);
 		if (ret > 0) {
 			tst_res(TFAIL, "group %d got event", i);
-			verify_event(0, event, FAN_CLOSE_NOWRITE);
+			verify_event(i, event, FAN_CLOSE_NOWRITE);
 			if (event->fd != FAN_NOFD)
 				SAFE_CLOSE(event->fd);
 			continue;
Signature · 1 line
1.8.3.1
#1 lore raw

PATCH 1/1 syscalls/fanotify09.c: Fix wrong group number

Quoted 2 lines · Xiao Yang
Quoted 25 lines
---
 testcases/kernel/syscalls/fanotify/fanotify09.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
testcases/kernel/syscalls/fanotify/fanotify09.c +1 -2
index 625634a..0f926c4 100644
@@ -216,7 +216,7 @@ static void test_fanotify(unsigned int n)
                ret = read(fd_notify[i], event_buf, FAN_EVENT_METADATA_LEN);
                if (ret > 0) {
                        tst_res(TFAIL, "group %d got event", i);
-                       verify_event(0, event, FAN_CLOSE_NOWRITE);
+                       verify_event(i, event, FAN_CLOSE_NOWRITE);
                        if (event->fd != FAN_NOFD)
                                SAFE_CLOSE(event->fd);
                        continue;
--

1.8.3.1

--
Mailing list info: https://lists.linux.it/listinfo/ltp