[sysprof/wip/chergert/path-resolver] tests: fix inode check
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof/wip/chergert/path-resolver] tests: fix inode check
- Date: Tue, 21 Sep 2021 23:05:05 +0000 (UTC)
commit 468b45b0862659473d35d9d162c73410f90f3361
Author: Christian Hergert <chergert redhat com>
Date: Tue Sep 21 16:05:00 2021 -0700
tests: fix inode check
We care about the event, not what we read.
src/tests/list-maps.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/tests/list-maps.c b/src/tests/list-maps.c
index 357d918..dbdf504 100644
--- a/src/tests/list-maps.c
+++ b/src/tests/list-maps.c
@@ -72,7 +72,7 @@ list_maps (const char *filename)
if (inode == (ino_t)-1)
g_print (" (missing)");
- else if (inode != 0 && inode != ev->inode)
+ else if (ev->inode != 0 && inode != ev->inode)
g_print (" (Inode mismatch, expected %lu got %lu)",
(gulong)ev->inode, (gulong)inode);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]