git: dbb0cb19ec7f - main - stress2: Update test to new working of option nomtime

Peter Holm pho at FreeBSD.org
Thu Sep 2 07:15:04 UTC 2021


The branch main has been updated by pho:

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

commit dbb0cb19ec7fcfc103b72c895cf0fdaa99e7ac04
Author:     Peter Holm <pho at FreeBSD.org>
AuthorDate: 2021-09-02 07:12:58 +0000
Commit:     Peter Holm <pho at 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;
 	}


More information about the dev-commits-src-main mailing list