FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
PikaPython/test/os-test.cpp at master · IVOES/PikaPython · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
IVOES
/
PikaPython
Public
forked from
pikasTech/PikaPython
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
PikaPython
/
test
/
os-test.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
24 lines (21 loc) · 655 Bytes
Breadcrumbs
PikaPython
/
test
/
os-test.cpp
Copy path
File metadata and controls
24 lines (21 loc) · 655 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include
"test_common.h"
TEST_START
#if
!
PIKA_NANO_ENABLE
TEST
(
os
,
test1
) {
g_PikaMemInfo
.
heapUsedMax
=
0
;
PikaObj
*
pikaMain
=
newRootObj
(
"pikaMain"
,
New_PikaMain
);
extern
unsigned
char
pikaModules_py_a
[];
obj_linkLibrary
(
pikaMain
,
pikaModules_py_a
);
/* run */
__platform_printf
(
"BEGIN\r\n"
);
pikaVM_runSingleFile
(
pikaMain
,
"test/python/os/os_test1.py"
);
/* assert */
EXPECT_STREQ
(
log_buff
[
0
],
"PASS\r\n"
);
EXPECT_STREQ
(
log_buff
[
1
],
"Hello World!\r\n"
);
/* deinit */
obj_deinit
(
pikaMain
);
EXPECT_EQ
(
pikaMemNow
(),
0
);
}
TEST_RUN_SINGLE_FILE_PASS
(
os
,
path
,
"test/python/os/os_path.py"
)
#endif
TEST_END
Back
|
FazBrowse Home
|
New Git URL