mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 22:56:00 +00:00
improve tests
This commit is contained in:
parent
05ee4d027a
commit
580af45a60
1 changed files with 4 additions and 4 deletions
|
@ -15,7 +15,7 @@ static void TEST_setjmp_1(void)
|
||||||
{
|
{
|
||||||
volatile int x = 2, y = 3, z = 4;
|
volatile int x = 2, y = 3, z = 4;
|
||||||
|
|
||||||
memset(&g_jmp_buf, 0, sizeof(g_jmp_buf));
|
memset(&g_jmp_buf, 0xCC, sizeof(g_jmp_buf));
|
||||||
|
|
||||||
if (setjmp(g_jmp_buf) == 0)
|
if (setjmp(g_jmp_buf) == 0)
|
||||||
{
|
{
|
||||||
|
@ -38,7 +38,7 @@ static void TEST_setjmp_2(void)
|
||||||
volatile int x = 1001, y = 1002, z = 1003;
|
volatile int x = 1001, y = 1002, z = 1003;
|
||||||
volatile int value;
|
volatile int value;
|
||||||
|
|
||||||
memset(&g_jmp_buf, 0, sizeof(g_jmp_buf));
|
memset(&g_jmp_buf, 0xCC, sizeof(g_jmp_buf));
|
||||||
value = setjmp(g_jmp_buf);
|
value = setjmp(g_jmp_buf);
|
||||||
|
|
||||||
if (value == 0)
|
if (value == 0)
|
||||||
|
@ -75,7 +75,7 @@ static void TEST_setjmp_3(void)
|
||||||
volatile int x = 1001, y = 1002, z = 1003;
|
volatile int x = 1001, y = 1002, z = 1003;
|
||||||
volatile int value;
|
volatile int value;
|
||||||
|
|
||||||
memset(&g_jmp_buf, 0, sizeof(g_jmp_buf));
|
memset(&g_jmp_buf, 0xCC, sizeof(g_jmp_buf));
|
||||||
value = setjmp(g_jmp_buf);
|
value = setjmp(g_jmp_buf);
|
||||||
|
|
||||||
if (value == 0)
|
if (value == 0)
|
||||||
|
@ -108,7 +108,7 @@ static void TEST_setjmp_4(void)
|
||||||
volatile int x = 101, y = 102, z = 103;
|
volatile int x = 101, y = 102, z = 103;
|
||||||
volatile int value;
|
volatile int value;
|
||||||
|
|
||||||
memset(&g_jmp_buf, 0, sizeof(g_jmp_buf));
|
memset(&g_jmp_buf, 0xCC, sizeof(g_jmp_buf));
|
||||||
value = setjmp(g_jmp_buf);
|
value = setjmp(g_jmp_buf);
|
||||||
|
|
||||||
if (value == 0)
|
if (value == 0)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue