diff --git a/testsuites/libtests/capture01/test1.c b/testsuites/libtests/capture01/test1.c index f6a157f676..e18cd0a5da 100644 --- a/testsuites/libtests/capture01/test1.c +++ b/testsuites/libtests/capture01/test1.c @@ -93,10 +93,8 @@ static void capture_CT1b( rtems_task_argument arg ) { (void) arg; - volatile int i; - while ( !capture_CT1c_deleted ) { - i++; + /* Busy wait */ } capture_CT1b_deleted = 1; diff --git a/testsuites/samples/capture/test1.c b/testsuites/samples/capture/test1.c index 7652f20465..b36befe9bf 100644 --- a/testsuites/samples/capture/test1.c +++ b/testsuites/samples/capture/test1.c @@ -92,10 +92,8 @@ static void capture_CT1b( rtems_task_argument arg ) { (void) arg; - volatile int i; - while ( !capture_CT1c_deleted ) { - i++; + /* Busy wait */ } capture_CT1b_deleted = 1;