[testcases]增加volatile解决优化等级高的情况下,测试不通过的问题 (#7717)

This commit is contained in:
goldengrandpa 2023-06-26 01:53:22 +08:00 committed by GitHub
parent b8796f55a5
commit 139d2b9fb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -13,8 +13,8 @@
#include "rthw.h"
#define UTEST_NAME "irq_tc"
static uint32_t irq_count = 0;
static uint32_t max_get_nest_count = 0;
static volatile uint32_t irq_count = 0;
static volatile uint32_t max_get_nest_count = 0;
static void irq_callback()
{

View File

@ -32,7 +32,7 @@ static volatile rt_uint32_t tid3_delay_pass_flag = 0;
static volatile rt_uint32_t tid3_finish_flag = 0;
static volatile rt_uint32_t tid4_finish_flag = 0;
static volatile rt_uint32_t tid6_finish_flag = 0;
static rt_uint32_t thread5_source = 0;
static volatile rt_uint32_t thread5_source = 0;
#ifndef RT_USING_SMP
static rt_uint32_t thread_yield_flag = 0;