sleep 0.25
[ "$(dlogutil -d -b apps | wc -l)" -eq 14 ] && ok || fail
-dlogutil -c
-LOG_DETAILS="testing if blocking dotnet and regular apps is separate (1/4)"
-dlogctl -b apps --enable
-dlogctl -b dotnet_api --disable
-dlogsend -b dotnet_api "TEST"
-[ "$(dlogutil -d -b apps | wc -l)" -eq 0 ] && ok || fail
-LOG_DETAILS="testing if blocking dotnet and regular apps is separate (2/4)"
-dlogsend -b apps "TEST"
-[ "$(dlogutil -d -b apps | wc -l)" -eq 1 ] && ok || fail
-LOG_DETAILS="testing if blocking dotnet and regular apps is separate (3/4)"
-dlogctl -b apps --disable
-dlogctl -b dotnet_api --enable
-dlogsend -b dotnet_api "TEST"
-[ "$(dlogutil -d -b apps | wc -l)" -eq 2 ] && ok || fail
-LOG_DETAILS="testing if blocking dotnet and regular apps is separate (4/4)"
-dlogsend -b apps "TEST"
-[ "$(dlogutil -d -b apps | wc -l)" -eq 2 ] && ok || fail
+if [ "$type" != "zero-copy" ]; then # These tests are inherently dynamic.
+ dlogutil -c
+ LOG_DETAILS="testing if blocking dotnet and regular apps is separate (1/4)"
+ dlogctl -b apps --enable
+ dlogctl -b dotnet_api --disable
+ dlogsend -b dotnet_api "TEST"
+ [ "$(dlogutil -d -b apps | wc -l)" -eq 0 ] && ok || fail
+ LOG_DETAILS="testing if blocking dotnet and regular apps is separate (2/4)"
+ dlogsend -b apps "TEST"
+ [ "$(dlogutil -d -b apps | wc -l)" -eq 1 ] && ok || fail
+ LOG_DETAILS="testing if blocking dotnet and regular apps is separate (3/4)"
+ dlogctl -b apps --disable
+ dlogctl -b dotnet_api --enable
+ dlogsend -b dotnet_api "TEST"
+ [ "$(dlogutil -d -b apps | wc -l)" -eq 2 ] && ok || fail
+ LOG_DETAILS="testing if blocking dotnet and regular apps is separate (4/4)"
+ dlogsend -b apps "TEST"
+ [ "$(dlogutil -d -b apps | wc -l)" -eq 2 ] && ok || fail
-dlogutil -c
-LOG_DETAILS="testing if blocking native and regular apps is separate (1/4)"
-dlogctl -b apps --enable
-dlogctl -b native_api --disable
-dlogsend -b native_api "TEST"
-[ "$(dlogutil -d -b apps | wc -l)" -eq 0 ] && ok || fail
-LOG_DETAILS="testing if blocking native and regular apps is separate (2/4)"
-dlogsend -b apps "TEST"
-[ "$(dlogutil -d -b apps | wc -l)" -eq 1 ] && ok || fail
-LOG_DETAILS="testing if blocking native and regular apps is separate (3/4)"
-dlogctl -b apps --disable
-dlogctl -b native_api --enable
-dlogsend -b native_api "TEST"
-[ "$(dlogutil -d -b apps | wc -l)" -eq 2 ] && ok || fail
-LOG_DETAILS="testing if blocking native and regular apps is separate (4/4)"
-dlogsend -b apps "TEST"
-[ "$(dlogutil -d -b apps | wc -l)" -eq 2 ] && ok || fail
+ dlogutil -c
+ LOG_DETAILS="testing if blocking native and regular apps is separate (1/4)"
+ dlogctl -b apps --enable
+ dlogctl -b native_api --disable
+ dlogsend -b native_api "TEST"
+ [ "$(dlogutil -d -b apps | wc -l)" -eq 0 ] && ok || fail
+ LOG_DETAILS="testing if blocking native and regular apps is separate (2/4)"
+ dlogsend -b apps "TEST"
+ [ "$(dlogutil -d -b apps | wc -l)" -eq 1 ] && ok || fail
+ LOG_DETAILS="testing if blocking native and regular apps is separate (3/4)"
+ dlogctl -b apps --disable
+ dlogctl -b native_api --enable
+ dlogsend -b native_api "TEST"
+ [ "$(dlogutil -d -b apps | wc -l)" -eq 2 ] && ok || fail
+ LOG_DETAILS="testing if blocking native and regular apps is separate (4/4)"
+ dlogsend -b apps "TEST"
+ [ "$(dlogutil -d -b apps | wc -l)" -eq 2 ] && ok || fail
+fi
# put 100 log entries in the "main" buffer
dlogutil -c