diff options
author | Michel Dänzer | 2018-03-01 04:15:42 -0600 |
---|---|---|
committer | Michel Dänzer | 2018-03-02 05:19:11 -0600 |
commit | a1a13d2002666922dbc7530c6f16aad600c3c3f3 (patch) | |
tree | 014add9329b457c031a4e8dbfa0aca85448c2b4e | |
parent | 1f6a85cc3773025940005e443f9bddcbf1795c27 (diff) | |
download | external-libgbm-a1a13d2002666922dbc7530c6f16aad600c3c3f3.tar.gz external-libgbm-a1a13d2002666922dbc7530c6f16aad600c3c3f3.tar.xz external-libgbm-a1a13d2002666922dbc7530c6f16aad600c3c3f3.zip |
tests/amdgpu: Fix misspellings of "suite"
Acked-by: Christian König <christian.koenig@amd.com>
-rw-r--r-- | tests/amdgpu/amdgpu_test.c | 12 | ||||
-rw-r--r-- | tests/amdgpu/amdgpu_test.h | 12 |
2 files changed, 12 insertions, 12 deletions
diff --git a/tests/amdgpu/amdgpu_test.c b/tests/amdgpu/amdgpu_test.c index 35cb37a4..e49f4a6c 100644 --- a/tests/amdgpu/amdgpu_test.c +++ b/tests/amdgpu/amdgpu_test.c | |||
@@ -51,7 +51,7 @@ | |||
51 | #include "amdgpu_test.h" | 51 | #include "amdgpu_test.h" |
52 | #include "amdgpu_internal.h" | 52 | #include "amdgpu_internal.h" |
53 | 53 | ||
54 | /* Test suit names */ | 54 | /* Test suite names */ |
55 | #define BASIC_TESTS_STR "Basic Tests" | 55 | #define BASIC_TESTS_STR "Basic Tests" |
56 | #define BO_TESTS_STR "BO Tests" | 56 | #define BO_TESTS_STR "BO Tests" |
57 | #define CS_TESTS_STR "CS Tests" | 57 | #define CS_TESTS_STR "CS Tests" |
@@ -399,7 +399,7 @@ static int amdgpu_find_device(uint8_t bus, uint16_t dev) | |||
399 | return -1; | 399 | return -1; |
400 | } | 400 | } |
401 | 401 | ||
402 | static void amdgpu_disable_suits() | 402 | static void amdgpu_disable_suites() |
403 | { | 403 | { |
404 | amdgpu_device_handle device_handle; | 404 | amdgpu_device_handle device_handle; |
405 | uint32_t major_version, minor_version, family_id; | 405 | uint32_t major_version, minor_version, family_id; |
@@ -415,11 +415,11 @@ static void amdgpu_disable_suits() | |||
415 | if (amdgpu_device_deinitialize(device_handle)) | 415 | if (amdgpu_device_deinitialize(device_handle)) |
416 | return; | 416 | return; |
417 | 417 | ||
418 | /* Set active status for suits based on their policies */ | 418 | /* Set active status for suites based on their policies */ |
419 | for (i = 0; i < size; ++i) | 419 | for (i = 0; i < size; ++i) |
420 | if (amdgpu_set_suite_active(suites_active_stat[i].pName, | 420 | if (amdgpu_set_suite_active(suites_active_stat[i].pName, |
421 | suites_active_stat[i].pActive())) | 421 | suites_active_stat[i].pActive())) |
422 | fprintf(stderr, "suit deactivation failed - %s\n", CU_get_error_msg()); | 422 | fprintf(stderr, "suite deactivation failed - %s\n", CU_get_error_msg()); |
423 | 423 | ||
424 | /* Explicitly disable specific tests due to known bugs or preferences */ | 424 | /* Explicitly disable specific tests due to known bugs or preferences */ |
425 | /* | 425 | /* |
@@ -557,8 +557,8 @@ int main(int argc, char **argv) | |||
557 | /* Run tests using the CUnit Basic interface */ | 557 | /* Run tests using the CUnit Basic interface */ |
558 | CU_basic_set_mode(CU_BRM_VERBOSE); | 558 | CU_basic_set_mode(CU_BRM_VERBOSE); |
559 | 559 | ||
560 | /* Disable suits and individual tests based on misc. conditions */ | 560 | /* Disable suites and individual tests based on misc. conditions */ |
561 | amdgpu_disable_suits(); | 561 | amdgpu_disable_suites(); |
562 | 562 | ||
563 | if (display_list) { | 563 | if (display_list) { |
564 | display_test_suites(); | 564 | display_test_suites(); |
diff --git a/tests/amdgpu/amdgpu_test.h b/tests/amdgpu/amdgpu_test.h index 7397dea0..62875736 100644 --- a/tests/amdgpu/amdgpu_test.h +++ b/tests/amdgpu/amdgpu_test.h | |||
@@ -350,26 +350,26 @@ amdgpu_get_bo_list(amdgpu_device_handle dev, amdgpu_bo_handle bo1, | |||
350 | } | 350 | } |
351 | 351 | ||
352 | 352 | ||
353 | static inline CU_ErrorCode amdgpu_set_suite_active(const char *suit_name, | 353 | static inline CU_ErrorCode amdgpu_set_suite_active(const char *suite_name, |
354 | CU_BOOL active) | 354 | CU_BOOL active) |
355 | { | 355 | { |
356 | CU_ErrorCode r = CU_set_suite_active(CU_get_suite(suit_name), active); | 356 | CU_ErrorCode r = CU_set_suite_active(CU_get_suite(suite_name), active); |
357 | 357 | ||
358 | if (r != CUE_SUCCESS) | 358 | if (r != CUE_SUCCESS) |
359 | fprintf(stderr, "Failed to obtain suite %s\n", suit_name); | 359 | fprintf(stderr, "Failed to obtain suite %s\n", suite_name); |
360 | 360 | ||
361 | return r; | 361 | return r; |
362 | } | 362 | } |
363 | 363 | ||
364 | static inline CU_ErrorCode amdgpu_set_test_active(const char *suit_name, | 364 | static inline CU_ErrorCode amdgpu_set_test_active(const char *suite_name, |
365 | const char *test_name, CU_BOOL active) | 365 | const char *test_name, CU_BOOL active) |
366 | { | 366 | { |
367 | CU_ErrorCode r; | 367 | CU_ErrorCode r; |
368 | CU_pSuite pSuite = CU_get_suite(suit_name); | 368 | CU_pSuite pSuite = CU_get_suite(suite_name); |
369 | 369 | ||
370 | if (!pSuite) { | 370 | if (!pSuite) { |
371 | fprintf(stderr, "Failed to obtain suite %s\n", | 371 | fprintf(stderr, "Failed to obtain suite %s\n", |
372 | suit_name); | 372 | suite_name); |
373 | return CUE_NOSUITE; | 373 | return CUE_NOSUITE; |
374 | } | 374 | } |
375 | 375 | ||