Skip to content

Commit f4a2c20

Browse files
committed
update gitignore to ignore temp test file
1 parent 47e9c01 commit f4a2c20

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,5 @@ test.file
3636
core
3737
*.perf
3838
tests/output.txt
39+
tests/testtest_*
3940

tests/temptest_execve.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import platform, sys, unittest, subprocess, string, random, os
2+
3+
from unicorn import UcError, UC_ERR_READ_UNMAPPED, UC_ERR_FETCH_UNMAPPED
4+
5+
sys.path.append("..")
6+
from qiling import *
7+
from qiling.const import *
8+
from qiling.exception import *
9+
from qiling.os.posix import syscall
10+
from qiling.os.mapper import QlFsMappedObject
11+
from qiling.os.posix.stat import Fstat
12+
from qiling.os.filestruct import ql_file
13+
14+
def test_elf_linux_execve_x8664(self):
15+
if platform.system() == "Darwin" and platform.machine() == "arm64":
16+
return
17+
18+
ql = Qiling(["../examples/rootfs/x8664_linux/bin/posix_syscall_execve"], "../examples/rootfs/x8664_linux", verbose=QL_VERBOSE.DEBUG)
19+
ql.run()
20+
21+
for key, value in ql.loader.env.items():
22+
QL_TEST=value
23+
24+
self.assertEqual("TEST_QUERY", QL_TEST)
25+
self.assertEqual("child", ql.loader.argv[0])
26+
27+
del QL_TEST
28+
del ql

0 commit comments

Comments
 (0)