aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAndrey Grodzovsky2017-11-27 06:26:13 -0600
committerAndrey Grodzovsky2017-11-29 09:31:10 -0600
commitaeab24aa9e074043965cf911f60a3736c4f6455d (patch)
treeecd8cd41f38d5ba6f5466360263436b4a8db6816 /tests
parent1a129004a82d557695fad1a7b9c37fe18b00c79f (diff)
downloadexternal-libgbm-aeab24aa9e074043965cf911f60a3736c4f6455d.tar.gz
external-libgbm-aeab24aa9e074043965cf911f60a3736c4f6455d.tar.xz
external-libgbm-aeab24aa9e074043965cf911f60a3736c4f6455d.zip
amdgpu: Dynamicly disable BO suite "Metadata" test.
Disable the test instead of doing #ifdef 0 Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com> Reviewed-by: Christian K├Ânig <christian.koenig@amd.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/amdgpu/amdgpu_test.c3
-rw-r--r--tests/amdgpu/bo_tests.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/tests/amdgpu/amdgpu_test.c b/tests/amdgpu/amdgpu_test.c
index e611276d..50da17ca 100644
--- a/tests/amdgpu/amdgpu_test.c
+++ b/tests/amdgpu/amdgpu_test.c
@@ -417,6 +417,9 @@ static void amdgpu_disable_suits()
417 */ 417 */
418 if (amdgpu_set_test_active(DEADLOCK_TESTS_STR, "compute ring block test", CU_FALSE)) 418 if (amdgpu_set_test_active(DEADLOCK_TESTS_STR, "compute ring block test", CU_FALSE))
419 fprintf(stderr, "test deactivation failed - %s\n", CU_get_error_msg()); 419 fprintf(stderr, "test deactivation failed - %s\n", CU_get_error_msg());
420
421 if (amdgpu_set_test_active(BO_TESTS_STR, "Metadata", CU_FALSE))
422 fprintf(stderr, "test deactivation failed - %s\n", CU_get_error_msg());
420} 423}
421 424
422/* The main() function for setting up and running the tests. 425/* The main() function for setting up and running the tests.
diff --git a/tests/amdgpu/bo_tests.c b/tests/amdgpu/bo_tests.c
index 53e76c1b..24698bcb 100644
--- a/tests/amdgpu/bo_tests.c
+++ b/tests/amdgpu/bo_tests.c
@@ -51,9 +51,7 @@ static void amdgpu_mem_fail_alloc(void);
51 51
52CU_TestInfo bo_tests[] = { 52CU_TestInfo bo_tests[] = {
53 { "Export/Import", amdgpu_bo_export_import }, 53 { "Export/Import", amdgpu_bo_export_import },
54#if 0
55 { "Metadata", amdgpu_bo_metadata }, 54 { "Metadata", amdgpu_bo_metadata },
56#endif
57 { "CPU map/unmap", amdgpu_bo_map_unmap }, 55 { "CPU map/unmap", amdgpu_bo_map_unmap },
58 { "Memory alloc Test", amdgpu_memory_alloc }, 56 { "Memory alloc Test", amdgpu_memory_alloc },
59 { "Memory fail alloc Test", amdgpu_mem_fail_alloc }, 57 { "Memory fail alloc Test", amdgpu_mem_fail_alloc },