OSDN Git Service

tests/amdgpu: add the missing deactivation case for dispatch test
authorLe Ma <le.ma@amd.com>
Mon, 5 Aug 2019 02:08:44 +0000 (10:08 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 18 Sep 2019 12:54:26 +0000 (07:54 -0500)
Signed-off-by: Le Ma <le.ma@amd.com>
Reviewed-by: Feifei Xu <Feifei.Xu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
tests/amdgpu/amdgpu_test.c

index b1e881b..5aadd7e 100644 (file)
@@ -464,9 +464,12 @@ static void amdgpu_disable_suites()
                        fprintf(stderr, "test deactivation failed - %s\n", CU_get_error_msg());
 
        /* This test was ran on GFX9 only */
-       if (family_id < AMDGPU_FAMILY_AI || family_id > AMDGPU_FAMILY_RV)
-               if (amdgpu_set_test_active(BASIC_TESTS_STR, "Dispatch Test", CU_FALSE))
+       if (family_id < AMDGPU_FAMILY_AI || family_id > AMDGPU_FAMILY_RV) {
+               if (amdgpu_set_test_active(BASIC_TESTS_STR, "Dispatch Test (GFX)", CU_FALSE))
+                       fprintf(stderr, "test deactivation failed - %s\n", CU_get_error_msg());
+               if (amdgpu_set_test_active(BASIC_TESTS_STR, "Dispatch Test (Compute)", CU_FALSE))
                        fprintf(stderr, "test deactivation failed - %s\n", CU_get_error_msg());
+       }
 
        /* This test was ran on GFX9 only */
        if (family_id < AMDGPU_FAMILY_AI || family_id > AMDGPU_FAMILY_RV)