[DTrace-devel] [PATCH 3/5] test: Make io tests a little more lenient

eugene.loh at oracle.com eugene.loh at oracle.com
Wed Feb 21 18:48:49 UTC 2024


From: Eugene Loh <eugene.loh at oracle.com>

Signed-off-by: Eugene Loh <eugene.loh at oracle.com>
---
 test/unittest/io/tst.local2.sh | 2 ++
 test/unittest/io/tst.nfs2.sh   | 4 +++-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/test/unittest/io/tst.local2.sh b/test/unittest/io/tst.local2.sh
index df8fdf35..5b7084b3 100755
--- a/test/unittest/io/tst.local2.sh
+++ b/test/unittest/io/tst.local2.sh
@@ -68,6 +68,8 @@ BEGIN { err = 0; bytes = 0; nrec = 0 }
 
 # skip over uninteresting records
 NF == 0 { next }
+\$4 == "wait-start" { next }
+\$4 == "wait-done" { next }
 \$14 != myiodone { next }
 \$22 != "$statname" { next }
 
diff --git a/test/unittest/io/tst.nfs2.sh b/test/unittest/io/tst.nfs2.sh
index 8afbdbf9..dd3bef73 100755
--- a/test/unittest/io/tst.nfs2.sh
+++ b/test/unittest/io/tst.nfs2.sh
@@ -63,14 +63,16 @@ BEGIN { err = 0; bytes = 0 }
 
 # skip over uninteresting records
 NF == 0 { next }
+\$4 == "wait-start" { next }
+\$4 == "wait-done" { next }
 \$6 != myflags { next }
+\$12 != "$myinode" { next }
 \$22 != "nfs" { next }
 
 # check
 \$4 != "start" &&
 \$4 != "done" { print "  ERROR: probe name should be start or done"; err = 1 }
 \$4 == "start" { bytes += \$7 }
-\$12 != "$myinode" { print "  ERROR: blknode should be inode"; err = 1 }
 \$14 != 0 { print "  ERROR: iodone should be 0"; err = 1 }
 \$21 != "nfs" { print "  ERROR: name should be nfs"; err = 1 }
 END {
-- 
2.18.4




More information about the DTrace-devel mailing list