Skip to content

Commit 3191918

Browse files
committed
release more test for m1 mac
1 parent e223e91 commit 3191918

File tree

3 files changed

+6
-12
lines changed

3 files changed

+6
-12
lines changed

qiling/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -864,7 +864,7 @@ def stop(self):
864864
self.arch.stop()
865865

866866
else:
867-
self.uc.emu_stop()
867+
self.uc.emu_stop()
868868

869869
# start emulation
870870
def emu_start(self, begin, end, timeout=0, count=0):

qiling/os/posix/syscall/unistd.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ def _sched_cb_exit(cur_thread):
5353
ql.os.exit_code = code
5454
ql.os.stop()
5555

56-
5756
def ql_syscall_alarm(ql: Qiling, seconds: int):
5857
return 0
5958

tests/test_elf_multithread.py

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ def test_elf_linux_execve_x8664(self):
3434
del QL_TEST
3535
del ql
3636

37+
3738
def test_elf_linux_cloexec_x8664(self):
3839
with open('../examples/rootfs/x8664_linux/testfile', 'wb') as f:
3940
f.write(b'0123456789')
@@ -149,9 +150,6 @@ def check_write(ql, write_fd, write_buf, write_count, *args, **kw):
149150

150151

151152
def test_tcp_elf_linux_x86(self):
152-
if platform.system() == "Darwin" and platform.machine() == "arm64":
153-
return
154-
155153
def check_write(ql, write_fd, write_buf, write_count, *args, **kw):
156154
try:
157155
buf = ql.mem.read(write_buf, write_count)
@@ -170,9 +168,6 @@ def check_write(ql, write_fd, write_buf, write_count, *args, **kw):
170168

171169

172170
def test_tcp_elf_linux_x8664(self):
173-
if platform.system() == "Darwin" and platform.machine() == "arm64":
174-
return
175-
176171
def check_write(ql, write_fd, write_buf, write_count, *args, **kw):
177172
try:
178173
buf = ql.mem.read(write_buf, write_count)
@@ -242,8 +237,8 @@ def test_tcp_elf_linux_mips32el(self):
242237

243238

244239
def test_udp_elf_linux_x86(self):
245-
if platform.system() == "Darwin" and platform.machine() == "arm64":
246-
return
240+
# if platform.system() == "Darwin" and platform.machine() == "arm64":
241+
# return
247242

248243
def check_write(ql, write_fd, write_buf, write_count, *args, **kw):
249244
try:
@@ -264,8 +259,8 @@ def check_write(ql, write_fd, write_buf, write_count, *args, **kw):
264259

265260

266261
def test_udp_elf_linux_x8664(self):
267-
if platform.system() == "Darwin" and platform.machine() == "arm64":
268-
return
262+
# if platform.system() == "Darwin" and platform.machine() == "arm64":
263+
# return
269264

270265
def check_write(ql, write_fd, write_buf, write_count, *args, **kw):
271266
try:

0 commit comments

Comments
 (0)