Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Sep 2021 07:15:03 GMT
From:      Peter Holm <pho@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: dbb0cb19ec7f - main - stress2: Update test to new working of option nomtime
Message-ID:  <202109020715.1827F3fT074287@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by pho:

URL: https://cgit.FreeBSD.org/src/commit/?id=dbb0cb19ec7fcfc103b72c895cf0fdaa99e7ac04

commit dbb0cb19ec7fcfc103b72c895cf0fdaa99e7ac04
Author:     Peter Holm <pho@FreeBSD.org>
AuthorDate: 2021-09-02 07:12:58 +0000
Commit:     Peter Holm <pho@FreeBSD.org>
CommitDate: 2021-09-02 07:12:58 +0000

    stress2: Update test to new working of option nomtime
---
 tools/test/stress2/misc/tmpfs22.sh | 4 ++--
 1 file 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;
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202109020715.1827F3fT074287>