From 8c51b46792c8f4d15a4ea360d6a8415aac449b48 Mon Sep 17 00:00:00 2001 From: Krzysztof Swiecicki Date: Tue, 7 Nov 2023 12:39:07 +0100 Subject: [PATCH] Refactor leak checking match tests --- test/layers/validation/CMakeLists.txt | 41 +++-- test/layers/validation/leaks.out.match | 134 ++++++++--------- test/layers/validation/leaks_mt.out.match | 175 +++++++++++----------- 3 files changed, 187 insertions(+), 163 deletions(-) diff --git a/test/layers/validation/CMakeLists.txt b/test/layers/validation/CMakeLists.txt index 85d639d196..944202e0d2 100644 --- a/test/layers/validation/CMakeLists.txt +++ b/test/layers/validation/CMakeLists.txt @@ -4,20 +4,20 @@ # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception set(UR_VALIDATION_TEST_DIR ${CMAKE_CURRENT_SOURCE_DIR}) +set(VAL_TEST_PREFIX validation_test) -function(add_validation_test name) - set(TEST_TARGET_NAME validation_test-${name}) - add_ur_executable(${TEST_TARGET_NAME} +function(add_validation_test_executable name) + add_ur_executable(${VAL_TEST_PREFIX}-${name} ${ARGN}) - target_link_libraries(${TEST_TARGET_NAME} + target_link_libraries(${VAL_TEST_PREFIX}-${name} PRIVATE ${PROJECT_NAME}::loader ${PROJECT_NAME}::headers ${PROJECT_NAME}::testing GTest::gtest_main) - add_test(NAME ${name} - COMMAND ${TEST_TARGET_NAME} - WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}) +endfunction() + +function(set_validation_test_properties name) set_tests_properties(${name} PROPERTIES LABELS "validation") set_property(TEST ${name} PROPERTY ENVIRONMENT "UR_ENABLE_LAYERS=UR_LAYER_FULL_VALIDATION" @@ -25,11 +25,28 @@ function(add_validation_test name) "UR_LOG_VALIDATION=level:debug\;flush:debug\;output:stdout") endfunction() -function(add_validation_match_test name match_file) - add_validation_test(${name} ${ARGN}) - file(READ ${match_file} MATCH_STRING) - set_tests_properties(${name} PROPERTIES - PASS_REGULAR_EXPRESSION "${MATCH_STRING}") +function(add_validation_test name) + add_validation_test_executable(${name} ${ARGN}) + + add_test(NAME ${name} + COMMAND ${VAL_TEST_PREFIX}-${name} + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}) + + set_validation_test_properties(${name}) +endfunction() + +function(add_validation_match_test name) + add_validation_test_executable(${name} ${ARGN}) + + add_test(NAME ${name} + COMMAND ${CMAKE_COMMAND} + -D MODE=stdout + -D TEST_FILE=$ + -D MATCH_FILE=${CMAKE_CURRENT_SOURCE_DIR}/${name}.out.match + -P ${PROJECT_SOURCE_DIR}/cmake/match.cmake + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}) + + set_validation_test_properties(${name}) endfunction() add_validation_test(parameters parameters.cpp) diff --git a/test/layers/validation/leaks.out.match b/test/layers/validation/leaks.out.match index 90f8713765..2a36a22263 100644 --- a/test/layers/validation/leaks.out.match +++ b/test/layers/validation/leaks.out.match @@ -1,67 +1,67 @@ -.* -\[ RUN \] urTest.testUrAdapterGetLeak -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to 1 -\[ERROR\]: Retained 1 reference\(s\) to handle [0-9xa-fA-F]+ -\[ERROR\]: Handle [0-9xa-fA-F]+ was recorded for first time here: -.* -\[ RUN \] urTest.testUrAdapterRetainLeak -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to 1 -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to 2 -\[ERROR\]: Retained 2 reference\(s\) to handle [0-9xa-fA-F]+ -\[ERROR\]: Handle [0-9xa-fA-F]+ was recorded for first time here: -.* -\[ RUN \] urTest.testUrAdapterRetainNonexistent -\[ERROR\]: Attempting to retain nonexistent handle [0-9xa-fA-F]+ -.* -\[ RUN \] valDeviceTest.testUrContextCreateLeak -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to 1 -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to 1 -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to 0 -\[ERROR\]: Retained 1 reference\(s\) to handle [0-9xa-fA-F]+ -\[ERROR\]: Handle [0-9xa-fA-F]+ was recorded for first time here: -.* -\[ RUN \] valDeviceTest.testUrContextRetainLeak -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to 1 -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to 1 -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to 2 -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to 0 -\[ERROR\]: Retained 2 reference\(s\) to handle [0-9xa-fA-F]+ -\[ERROR\]: Handle [0-9xa-fA-F]+ was recorded for first time here: -.* -\[ RUN \] valDeviceTest.testUrContextRetainNonexistent -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to 1 -\[ERROR\]: Attempting to retain nonexistent handle [0-9xa-fA-F]+ -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to 0 -.* -\[ RUN \] valDeviceTest.testUrContextCreateSuccess -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to 1 -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to 1 -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to 0 -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to 0 -.* -\[ RUN \] valDeviceTest.testUrContextRetainSuccess -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to 1 -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to 1 -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to 2 -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to 1 -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to 0 -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to 0 -.* -\[ RUN \] valDeviceTest.testUrContextReleaseLeak -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to 1 -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to 1 -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to 0 -\[ERROR\]: Attempting to release nonexistent handle [0-9xa-fA-F]+ -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to -1 -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to 0 -\[ERROR\]: Retained -1 reference\(s\) to handle [0-9xa-fA-F]+ -\[ERROR\]: Handle [0-9xa-fA-F]+ was recorded for first time here: -.* -\[ RUN \] valDeviceTest.testUrContextReleaseNonexistent -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to 1 -\[ERROR\]: Attempting to release nonexistent handle [0-9xa-fA-F]+ -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to -1 -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to 0 -\[ERROR\]: Retained -1 reference\(s\) to handle [0-9xa-fA-F]+ -\[ERROR\]: Handle [0-9xa-fA-F]+ was recorded for first time here: -.* +{{IGNORE}} +[ RUN ] urTest.testUrAdapterGetLeak +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to 1 +[ERROR]: Retained 1 reference(s) to handle {{[0-9xa-fA-F]+}} +[ERROR]: Handle {{[0-9xa-fA-F]+}} was recorded for first time here: +{{IGNORE}} +[ RUN ] urTest.testUrAdapterRetainLeak +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to 1 +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to 2 +[ERROR]: Retained 2 reference(s) to handle {{[0-9xa-fA-F]+}} +[ERROR]: Handle {{[0-9xa-fA-F]+}} was recorded for first time here: +{{IGNORE}} +[ RUN ] urTest.testUrAdapterRetainNonexistent +[ERROR]: Attempting to retain nonexistent handle {{[0-9xa-fA-F]+}} +{{IGNORE}} +[ RUN ] valDeviceTest.testUrContextCreateLeak +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to 1 +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to 1 +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to 0 +[ERROR]: Retained 1 reference(s) to handle {{[0-9xa-fA-F]+}} +[ERROR]: Handle {{[0-9xa-fA-F]+}} was recorded for first time here: +{{IGNORE}} +[ RUN ] valDeviceTest.testUrContextRetainLeak +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to 1 +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to 1 +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to 2 +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to 0 +[ERROR]: Retained 2 reference(s) to handle {{[0-9xa-fA-F]+}} +[ERROR]: Handle {{[0-9xa-fA-F]+}} was recorded for first time here: +{{IGNORE}} +[ RUN ] valDeviceTest.testUrContextRetainNonexistent +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to 1 +[ERROR]: Attempting to retain nonexistent handle {{[0-9xa-fA-F]+}} +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to 0 +{{IGNORE}} +[ RUN ] valDeviceTest.testUrContextCreateSuccess +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to 1 +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to 1 +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to 0 +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to 0 +{{IGNORE}} +[ RUN ] valDeviceTest.testUrContextRetainSuccess +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to 1 +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to 1 +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to 2 +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to 1 +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to 0 +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to 0 +{{IGNORE}} +[ RUN ] valDeviceTest.testUrContextReleaseLeak +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to 1 +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to 1 +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to 0 +[ERROR]: Attempting to release nonexistent handle {{[0-9xa-fA-F]+}} +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to -1 +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to 0 +[ERROR]: Retained -1 reference(s) to handle {{[0-9xa-fA-F]+}} +[ERROR]: Handle {{[0-9xa-fA-F]+}} was recorded for first time here: +{{IGNORE}} +[ RUN ] valDeviceTest.testUrContextReleaseNonexistent +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to 1 +[ERROR]: Attempting to release nonexistent handle {{[0-9xa-fA-F]+}} +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to -1 +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to 0 +[ERROR]: Retained -1 reference(s) to handle {{[0-9xa-fA-F]+}} +[ERROR]: Handle {{[0-9xa-fA-F]+}} was recorded for first time here: +{{IGNORE}} diff --git a/test/layers/validation/leaks_mt.out.match b/test/layers/validation/leaks_mt.out.match index 86de1e1d76..f1bd32f8b5 100644 --- a/test/layers/validation/leaks_mt.out.match +++ b/test/layers/validation/leaks_mt.out.match @@ -1,84 +1,91 @@ -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to 1 -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to 1 -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to 2 -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to 3 -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to 0 -\[ERROR\]: Retained 3 reference\(s\) to handle [0-9xa-fA-F]+ -\[ERROR\]: Handle [0-9xa-fA-F]+ was recorded for first time here: -(.*) -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to 1 -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to 1 -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to 2 -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to 3 -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to 4 -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to 5 -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to 6 -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to 7 -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to 8 -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to 9 -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to 0 -\[ERROR\]: Retained 9 reference\(s\) to handle [0-9xa-fA-F]+ -\[ERROR\]: Handle [0-9xa-fA-F]+ was recorded for first time here: -(.*) -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to 1 -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to 1 -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to 0 -\[ERROR\]: Attempting to release nonexistent handle [0-9xa-fA-F]+ -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to -1 -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to 0 -\[ERROR\]: Retained -1 reference\(s\) to handle [0-9xa-fA-F]+ -\[ERROR\]: Handle [0-9xa-fA-F]+ was recorded for first time here: -(.*) -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to 1 -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to 1 -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to 0 -\[ERROR\]: Attempting to release nonexistent handle [0-9xa-fA-F]+ -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to -1 -\[ERROR\]: Attempting to release nonexistent handle [0-9xa-fA-F]+ -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to -2 -\[ERROR\]: Attempting to release nonexistent handle [0-9xa-fA-F]+ -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to -3 -\[ERROR\]: Attempting to release nonexistent handle [0-9xa-fA-F]+ -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to -4 -\[ERROR\]: Attempting to release nonexistent handle [0-9xa-fA-F]+ -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to -5 -\[ERROR\]: Attempting to release nonexistent handle [0-9xa-fA-F]+ -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to -6 -\[ERROR\]: Attempting to release nonexistent handle [0-9xa-fA-F]+ -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to -7 -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to 0 -\[ERROR\]: Retained -7 reference\(s\) to handle [0-9xa-fA-F]+ -\[ERROR\]: Handle [0-9xa-fA-F]+ was recorded for first time here: -(.*) -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to 1 -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to 1 -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to [1-9]+ -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to [1-9]+ -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to [1-9]+ -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to 1 -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to 0 -\[ERROR\]: Retained 1 reference\(s\) to handle [0-9xa-fA-F]+ -\[ERROR\]: Handle [0-9xa-fA-F]+ was recorded for first time here: -(.*) -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to 1 -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to 1 -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to [1-9]+ -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to [1-9]+ -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to [1-9]+ -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to [1-9]+ -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to [1-9]+ -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to [1-9]+ -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to [1-9]+ -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to [1-9]+ -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to [1-9]+ -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to [1-9]+ -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to [1-9]+ -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to [1-9]+ -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to [1-9]+ -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to [1-9]+ -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to [1-9]+ -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to 1 -\[DEBUG\]: Reference count for handle [0-9xa-fA-F]+ changed to 0 -\[ERROR\]: Retained 1 reference\(s\) to handle [0-9xa-fA-F]+ -\[ERROR\]: Handle [0-9xa-fA-F]+ was recorded for first time here: -(.*) +{{IGNORE}} +[ RUN ] threadCountForValDeviceTest/valDeviceTestMultithreaded.testUrContextRetainLeakMt/0 +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to 1 +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to 1 +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to 2 +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to 3 +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to 0 +[ERROR]: Retained 3 reference(s) to handle {{[0-9xa-fA-F]+}} +[ERROR]: Handle {{[0-9xa-fA-F]+}} was recorded for first time here: +{{IGNORE}} +[ RUN ] threadCountForValDeviceTest/valDeviceTestMultithreaded.testUrContextRetainLeakMt/1 +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to 1 +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to 1 +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to 2 +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to 3 +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to 4 +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to 5 +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to 6 +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to 7 +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to 8 +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to 9 +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to 0 +[ERROR]: Retained 9 reference(s) to handle {{[0-9xa-fA-F]+}} +[ERROR]: Handle {{[0-9xa-fA-F]+}} was recorded for first time here: +{{IGNORE}} +[ RUN ] threadCountForValDeviceTest/valDeviceTestMultithreaded.testUrContextReleaseLeakMt/0 +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to 1 +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to 1 +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to 0 +[ERROR]: Attempting to release nonexistent handle {{[0-9xa-fA-F]+}} +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to -1 +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to 0 +[ERROR]: Retained -1 reference(s) to handle {{[0-9xa-fA-F]+}} +[ERROR]: Handle {{[0-9xa-fA-F]+}} was recorded for first time here: +{{IGNORE}} +[ RUN ] threadCountForValDeviceTest/valDeviceTestMultithreaded.testUrContextReleaseLeakMt/1 +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to 1 +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to 1 +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to 0 +[ERROR]: Attempting to release nonexistent handle {{[0-9xa-fA-F]+}} +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to -1 +[ERROR]: Attempting to release nonexistent handle {{[0-9xa-fA-F]+}} +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to -2 +[ERROR]: Attempting to release nonexistent handle {{[0-9xa-fA-F]+}} +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to -3 +[ERROR]: Attempting to release nonexistent handle {{[0-9xa-fA-F]+}} +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to -4 +[ERROR]: Attempting to release nonexistent handle {{[0-9xa-fA-F]+}} +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to -5 +[ERROR]: Attempting to release nonexistent handle {{[0-9xa-fA-F]+}} +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to -6 +[ERROR]: Attempting to release nonexistent handle {{[0-9xa-fA-F]+}} +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to -7 +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to 0 +[ERROR]: Retained -7 reference(s) to handle {{[0-9xa-fA-F]+}} +[ERROR]: Handle {{[0-9xa-fA-F]+}} was recorded for first time here: +{{IGNORE}} +[ RUN ] threadCountForValDeviceTest/valDeviceTestMultithreaded.testUrContextRetainReleaseLeakMt/0 +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to 1 +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to 1 +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to {{[1-9]+}} +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to {{[1-9]+}} +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to {{[1-9]+}} +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to 1 +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to 0 +[ERROR]: Retained 1 reference(s) to handle {{[0-9xa-fA-F]+}} +[ERROR]: Handle {{[0-9xa-fA-F]+}} was recorded for first time here: +{{IGNORE}} +[ RUN ] threadCountForValDeviceTest/valDeviceTestMultithreaded.testUrContextRetainReleaseLeakMt/1 +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to 1 +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to 1 +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to {{[1-9]+}} +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to {{[1-9]+}} +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to {{[1-9]+}} +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to {{[1-9]+}} +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to {{[1-9]+}} +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to {{[1-9]+}} +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to {{[1-9]+}} +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to {{[1-9]+}} +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to {{[1-9]+}} +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to {{[1-9]+}} +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to {{[1-9]+}} +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to {{[1-9]+}} +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to {{[1-9]+}} +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to {{[1-9]+}} +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to {{[1-9]+}} +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to 1 +[DEBUG]: Reference count for handle {{[0-9xa-fA-F]+}} changed to 0 +[ERROR]: Retained 1 reference(s) to handle {{[0-9xa-fA-F]+}} +[ERROR]: Handle {{[0-9xa-fA-F]+}} was recorded for first time here: +{{IGNORE}}