aboutsummaryrefslogtreecommitdiff
path: root/tests/stat
diff options
context:
space:
mode:
Diffstat (limited to 'tests/stat')
-rw-r--r--tests/stat/output.txt16
-rw-r--r--tests/stat/src.c5
2 files changed, 13 insertions, 8 deletions
diff --git a/tests/stat/output.txt b/tests/stat/output.txt
index 1e6ae74e..b5d66fa5 100644
--- a/tests/stat/output.txt
+++ b/tests/stat/output.txt
@@ -2,7 +2,7 @@
ret: 0
errno: 0
st_dev: 1
-st_ino: 2
+st_ino: 8
st_mode: 040777
st_nlink: 1
st_rdev: 0
@@ -24,7 +24,7 @@ S_ISSOCK: 0
ret: 0
errno: 0
st_dev: 1
-st_ino: 3
+st_ino: 9
st_mode: 0100777
st_nlink: 1
st_rdev: 0
@@ -45,11 +45,11 @@ S_ISSOCK: 0
--stat DEVICE--
ret: 0
errno: 0
-st_dev: 5
-st_ino: 5
+st_dev: 11
+st_ino: 11
st_mode: 020777
st_nlink: 1
-st_rdev: 5
+st_rdev: 11
st_size: 0
st_atime: 1200000000
st_mtime: 1200000000
@@ -68,7 +68,7 @@ S_ISSOCK: 0
ret: 0
errno: 0
st_dev: 1
-st_ino: 3
+st_ino: 9
st_mode: 0100777
st_nlink: 1
st_rdev: 0
@@ -90,7 +90,7 @@ S_ISSOCK: 0
ret: 0
errno: 0
st_dev: 1
-st_ino: 4
+st_ino: 10
st_mode: 0120777
st_nlink: 1
st_rdev: 0
@@ -112,7 +112,7 @@ S_ISSOCK: 0
ret: 0
errno: 0
st_dev: 1
-st_ino: 3
+st_ino: 9
st_mode: 0100777
st_nlink: 1
st_rdev: 0
diff --git a/tests/stat/src.c b/tests/stat/src.c
index 3b3b8421..bdf27ca2 100644
--- a/tests/stat/src.c
+++ b/tests/stat/src.c
@@ -1,3 +1,8 @@
+/*
+Note: Hardcoded st_ino values etc. may change with minor changes to the library impl.
+ In such an event, we will need to update output.txt here.
+*/
+
#include <stdio.h>
#include <string.h>
#include <errno.h>