Home
last modified time | relevance | path

Searched refs:g_shmptr (Results 1 - 6 of 6) sorted by relevance

/kernel/liteos_a/testsuites/unittest/process/basic/process/full/
H A Dprocess_test_062.cpp34 static volatile int *g_shmptr = NULL; variable
38 (*g_shmptr)++; in Handler()
51 g_shmptr = (int *)shmat(shmid, nullptr, 0); in TestCase()
52 ICUNIT_GOTO_NOT_EQUAL(g_shmptr, (int *)-1, g_shmptr, EXIT); in TestCase()
54 *g_shmptr = 0; in TestCase()
67 while (*g_shmptr < 3) { // 3, Number of cycles. in TestCase()
74 while (*g_shmptr < 3) { // 3, Number of cycles. in TestCase()
87 while (*g_shmptr < 3) { // 3, wait function running. in TestCase()
90 ICUNIT_ASSERT_EQUAL(*g_shmptr, in TestCase()
[all...]
H A Dprocess_test_051.cpp34 static int *g_shmptr = NULL; variable
46 *g_shmptr = 1000; // 1000, set shared num. in TestThread()
59 *g_shmptr = 100; // 100, set shared num. in TestThread()
77 g_shmptr = (int *)shmat(shmid, nullptr, 0); in Testcase()
78 ICUNIT_ASSERT_NOT_EQUAL(g_shmptr, reinterpret_cast<int *>(-1), g_shmptr); in Testcase()
80 *g_shmptr = 0; in Testcase()
91 ICUNIT_GOTO_EQUAL(*g_shmptr, 100, *g_shmptr, EXIT2); // 100, assert g_shmptr equa in Testcase()
[all...]
H A Dprocess_test_050.cpp34 static int *g_shmptr = NULL; variable
44 *g_shmptr = 100; // 100, set shared num. in TestThread()
62 g_shmptr = (int *)shmat(shmid, nullptr, 0); in Testcase()
63 ICUNIT_ASSERT_NOT_EQUAL(g_shmptr, reinterpret_cast<int *>(-1), g_shmptr); in Testcase()
65 *g_shmptr = 0; in Testcase()
80 while ((count < 100) || (*g_shmptr == 0)) { // 100, Number of cycles. in Testcase()
85 ICUNIT_GOTO_EQUAL(*g_shmptr, 100, *g_shmptr, EXIT2); // 100, assert g_shmptr equa in Testcase()
[all...]
H A Dprocess_test_049.cpp34 static int *g_shmptr = NULL; variable
54 *g_shmptr = 100; // 100, set shared num. in TestThread()
64 *g_shmptr = 200; // 200, set shared num. in TestThread()
71 *g_shmptr = data; in TestThread()
90 g_shmptr = (int *)shmat(shmid, nullptr, 0); in Testcase()
91 ICUNIT_ASSERT_NOT_EQUAL(g_shmptr, reinterpret_cast<int *>(-1), g_shmptr); in Testcase()
93 *g_shmptr = 0; in Testcase()
101 ICUNIT_GOTO_EQUAL(*g_shmptr, arg, *g_shmptr, EXIT in Testcase()
[all...]
H A Dprocess_test_052.cpp34 static int *g_shmptr = NULL; variable
47 *g_shmptr = 100; // 100, set shared num. in TestThread()
60 g_shmptr = (int *)shmat(shmid, nullptr, 0); in Testcase()
61 ICUNIT_ASSERT_NOT_EQUAL(g_shmptr, static_cast<int *>(-1), g_shmptr); in Testcase()
63 *g_shmptr = 0; in Testcase()
74 ICUNIT_GOTO_EQUAL(*g_shmptr, 100, *g_shmptr, EXIT2); // 100, assert g_shmptr equal to this. in Testcase()
83 shmdt(g_shmptr); in Testcase()
[all...]
/kernel/liteos_a/testsuites/unittest/basic/mem/shm/full/
H A Dshm_test_009.cpp42 static int *g_shmptr = NULL; variable
65 (*g_shmptr)++; in TestProcess()
97 g_shmptr = (int *)shmat(shmid, 0, 0); in Testcase()
98 ICUNIT_ASSERT_NOT_EQUAL(g_shmptr, reinterpret_cast<int *>(-1), g_shmptr); in Testcase()
100 *g_shmptr = 0; in Testcase()
128 oldcount = *g_shmptr; in Testcase()
133 newcount = *g_shmptr; in Testcase()
147 ret = shmdt(g_shmptr); in Testcase()

Completed in 3 milliseconds