Disable some dynamic tests on the zero-copy backend 66/298666/2
authorMateusz Majewski <m.majewski2@samsung.com>
Tue, 12 Sep 2023 07:09:09 +0000 (09:09 +0200)
committerMateusz Majewski <m.majewski2@samsung.com>
Wed, 13 Sep 2023 14:27:24 +0000 (16:27 +0200)
They have never passed there anyway.

Change-Id: I7680db2f787a5dc6645708997f07ffb775e57efb

tests/dlog_test.in

index 98afe2f..607d2fc 100644 (file)
@@ -358,42 +358,44 @@ dlogsend -c 6 -b native_api "TEST"
 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