summaryrefslogtreecommitdiff
path: root/test/smp/regression/threadx_mutex_information_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/smp/regression/threadx_mutex_information_test.c')
-rw-r--r--test/smp/regression/threadx_mutex_information_test.c47
1 files changed, 29 insertions, 18 deletions
diff --git a/test/smp/regression/threadx_mutex_information_test.c b/test/smp/regression/threadx_mutex_information_test.c
index 55503002..3829122c 100644
--- a/test/smp/regression/threadx_mutex_information_test.c
+++ b/test/smp/regression/threadx_mutex_information_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test is designed to test the mutex information services. */
#include <stdio.h>
@@ -312,7 +323,7 @@ ULONG inheritances;
test_control_return(1);
}
- /* Now get the performance inforamtion. */
+ /* Now get the performance information. */
status = tx_mutex_performance_info_get(&mutex_2, &puts, &gets, &suspensions, &timeouts, &inversions, &inheritances);
/* Check status. */
@@ -325,8 +336,8 @@ ULONG inheritances;
printf("ERROR #19\n");
test_control_return(1);
}
-
- /* Now get the system performance inforamtion. */
+
+ /* Now get the system performance information. */
status = tx_mutex_performance_system_info_get(&puts, &gets, &suspensions, &timeouts, &inversions, &inheritances);
/* Check status. */
@@ -342,7 +353,7 @@ ULONG inheritances;
#else
- /* Now get the performance inforamtion. */
+ /* Now get the performance information. */
status = tx_mutex_performance_info_get(&mutex_2, &puts, &gets, &suspensions, &timeouts, &inversions, &inheritances);
/* Check status. */
@@ -354,7 +365,7 @@ ULONG inheritances;
test_control_return(1);
}
- /* Now get the performance inforamtion. */
+ /* Now get the performance information. */
status = tx_mutex_performance_info_get(TX_NULL, &puts, &gets, &suspensions, &timeouts, &inversions, &inheritances);
/* Check status. */
@@ -366,7 +377,7 @@ ULONG inheritances;
test_control_return(1);
}
- /* Now get the performance inforamtion. */
+ /* Now get the performance information. */
status = tx_mutex_performance_info_get(TX_NULL, TX_NULL, &gets, &suspensions, &timeouts, &inversions, &inheritances);
/* Check status. */
@@ -378,7 +389,7 @@ ULONG inheritances;
test_control_return(1);
}
- /* Now get the performance inforamtion. */
+ /* Now get the performance information. */
status = tx_mutex_performance_info_get(TX_NULL, TX_NULL, TX_NULL, &suspensions, &timeouts, &inversions, &inheritances);
/* Check status. */
@@ -390,7 +401,7 @@ ULONG inheritances;
test_control_return(1);
}
- /* Now get the performance inforamtion. */
+ /* Now get the performance information. */
status = tx_mutex_performance_info_get(TX_NULL, TX_NULL, TX_NULL, TX_NULL, &timeouts, &inversions, &inheritances);
/* Check status. */
@@ -402,7 +413,7 @@ ULONG inheritances;
test_control_return(1);
}
- /* Now get the performance inforamtion. */
+ /* Now get the performance information. */
status = tx_mutex_performance_info_get(TX_NULL, TX_NULL, TX_NULL, TX_NULL, TX_NULL, &inversions, &inheritances);
/* Check status. */
@@ -414,7 +425,7 @@ ULONG inheritances;
test_control_return(1);
}
- /* Now get the performance inforamtion. */
+ /* Now get the performance information. */
status = tx_mutex_performance_info_get(TX_NULL, TX_NULL, TX_NULL, TX_NULL, TX_NULL, TX_NULL, &inheritances);
/* Check status. */
@@ -426,7 +437,7 @@ ULONG inheritances;
test_control_return(1);
}
- /* Now get the performance inforamtion. */
+ /* Now get the performance information. */
status = tx_mutex_performance_info_get(TX_NULL, TX_NULL, TX_NULL, TX_NULL, TX_NULL, TX_NULL, TX_NULL);
/* Check status. */
@@ -438,7 +449,7 @@ ULONG inheritances;
test_control_return(1);
}
- /* Now get the system performance inforamtion. */
+ /* Now get the system performance information. */
status = tx_mutex_performance_system_info_get(&puts, &gets, &suspensions, &timeouts, &inversions, &inheritances);
/* Check status. */
@@ -450,7 +461,7 @@ ULONG inheritances;
test_control_return(1);
}
- /* Now get the system performance inforamtion. */
+ /* Now get the system performance information. */
status = tx_mutex_performance_system_info_get(TX_NULL, &gets, &suspensions, &timeouts, &inversions, &inheritances);
/* Check status. */
@@ -462,7 +473,7 @@ ULONG inheritances;
test_control_return(1);
}
- /* Now get the system performance inforamtion. */
+ /* Now get the system performance information. */
status = tx_mutex_performance_system_info_get(TX_NULL, TX_NULL, &suspensions, &timeouts, &inversions, &inheritances);
/* Check status. */
@@ -474,7 +485,7 @@ ULONG inheritances;
test_control_return(1);
}
- /* Now get the system performance inforamtion. */
+ /* Now get the system performance information. */
status = tx_mutex_performance_system_info_get(TX_NULL, TX_NULL, TX_NULL, &timeouts, &inversions, &inheritances);
/* Check status. */
@@ -486,7 +497,7 @@ ULONG inheritances;
test_control_return(1);
}
- /* Now get the system performance inforamtion. */
+ /* Now get the system performance information. */
status = tx_mutex_performance_system_info_get(TX_NULL, TX_NULL, TX_NULL, TX_NULL, &inversions, &inheritances);
/* Check status. */
@@ -498,7 +509,7 @@ ULONG inheritances;
test_control_return(1);
}
- /* Now get the system performance inforamtion. */
+ /* Now get the system performance information. */
status = tx_mutex_performance_system_info_get(TX_NULL, TX_NULL, TX_NULL, TX_NULL, TX_NULL, &inheritances);
/* Check status. */
@@ -510,7 +521,7 @@ ULONG inheritances;
test_control_return(1);
}
- /* Now get the system performance inforamtion. */
+ /* Now get the system performance information. */
status = tx_mutex_performance_system_info_get(TX_NULL, TX_NULL, TX_NULL, TX_NULL, TX_NULL, TX_NULL);
/* Check status. */