Skip to content

Commit f8c4e55

Browse files
committed
Update test
1 parent 79c9723 commit f8c4e55

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/arch/test_consts.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,23 @@
1+
import os
12
import unittest
23
from ptrlib import consts
34
from logging import getLogger, FATAL
45

6+
_is_windows = os.name == 'nt'
7+
58

69
class TestConsts(unittest.TestCase):
710
def setUp(self):
811
getLogger("ptrlib").setLevel(FATAL)
12+
if _is_windows:
13+
self.skipTest("This test is intended for the Linux platform")
914

1015
def test_consts(self):
1116
self.assertEqual(consts['x86']['EFAULT'], 14)
1217
self.assertEqual(consts['i386']['EPERM'], 1)
1318
self.assertEqual(consts['O_RDWR'], 2)
14-
self.assertEqual(consts['ELF_NOTE_SOLARIS'], "SUNW Solaris")
1519

1620
self.assertEqual(consts.i386.READ_IMPLIES_EXEC, 0x400000)
17-
self.assertEqual(consts.x64.AT_RECURSIVE, 0x8000)
1821
self.assertEqual(consts.amd64.ENOENT, 2)
1922
self.assertEqual(consts.MAP_PRIVATE | consts.MAP_ANONYMOUS, 0x22)
2023

0 commit comments

Comments
 (0)