aboutsummaryrefslogtreecommitdiff
path: root/tools/test
diff options
context:
space:
mode:
authorPeter Holm <pho@FreeBSD.org>2021-09-02 07:12:58 +0000
committerPeter Holm <pho@FreeBSD.org>2021-09-02 07:12:58 +0000
commitdbb0cb19ec7fcfc103b72c895cf0fdaa99e7ac04 (patch)
treea85d06be9d5af46f62674908ad203bb77444a0ef /tools/test
parent78f718e2c835fa31d784d437ed168791cd2eb88b (diff)
downloadsrc-dbb0cb19ec7fcfc103b72c895cf0fdaa99e7ac04.tar.gz
src-dbb0cb19ec7fcfc103b72c895cf0fdaa99e7ac04.zip
stress2: Update test to new working of option nomtime
Diffstat (limited to 'tools/test')
-rwxr-xr-xtools/test/stress2/misc/tmpfs22.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/test/stress2/misc/tmpfs22.sh b/tools/test/stress2/misc/tmpfs22.sh
index 36d2cc59dabd..4439ad1bf1d5 100755
--- a/tools/test/stress2/misc/tmpfs22.sh
+++ b/tools/test/stress2/misc/tmpfs22.sh
@@ -105,8 +105,8 @@ main(void)
if (fstat(fd, &st2) == -1)
err(1, "fstat 2");
s = 0;
- if (st1.st_mtime != st2.st_mtime) {
- fprintf(stderr, "mtime differs: %ld %ld\n",
+ if (st1.st_mtime == st2.st_mtime) {
+ fprintf(stderr, "mtime is unchanged: %ld %ld\n",
(long)st1.st_mtime, (long)st2.st_mtime);
s=1;
}