Skip to content

Commit

Permalink
Log when zerocopy tests are skipped
Browse files Browse the repository at this point in the history
Signed-off-by: Jacob Murphy <[email protected]>
  • Loading branch information
murphyjacob4 committed Jan 10, 2025
1 parent a47b959 commit 82f7303
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/unit/zerocopy.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ start_server {} {
set replica_port [srv -1 port]

# Only test if zerocopy is supported.
if {[lindex [r config get tcp-tx-zerocopy] 1] == "yes"} {
if {[lindex [$primary config get tcp-tx-zerocopy] 1] == "yes"} {
$primary debug zerocopy-for-loopback 1
$primary config set repl-timeout 1200 ;# 20 minutes (for valgrind and slow machines)
$replica config set repl-timeout 1200 ;# 20 minutes (for valgrind and slow machines)
Expand Down Expand Up @@ -249,6 +249,8 @@ start_server {} {
# Buffer should shrink back to original size
assert_equal [s 0 used_memory_zero_copy_tracking] $initial_zerocopy_mem
}
} else {
if {$::verbose} { puts "Skipping zero copy tests." }
}
}
}

0 comments on commit 82f7303

Please sign in to comment.