File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change
1
+ import os
1
2
import unittest
2
3
from ptrlib import consts
3
4
from logging import getLogger , FATAL
4
5
6
+ _is_windows = os .name == 'nt'
7
+
5
8
6
9
class TestConsts (unittest .TestCase ):
7
10
def setUp (self ):
8
11
getLogger ("ptrlib" ).setLevel (FATAL )
12
+ if _is_windows :
13
+ self .skipTest ("This test is intended for the Linux platform" )
9
14
10
15
def test_consts (self ):
11
16
self .assertEqual (consts ['x86' ]['EFAULT' ], 14 )
12
17
self .assertEqual (consts ['i386' ]['EPERM' ], 1 )
13
18
self .assertEqual (consts ['O_RDWR' ], 2 )
14
- self .assertEqual (consts ['ELF_NOTE_SOLARIS' ], "SUNW Solaris" )
15
19
16
20
self .assertEqual (consts .i386 .READ_IMPLIES_EXEC , 0x400000 )
17
- self .assertEqual (consts .x64 .AT_RECURSIVE , 0x8000 )
18
21
self .assertEqual (consts .amd64 .ENOENT , 2 )
19
22
self .assertEqual (consts .MAP_PRIVATE | consts .MAP_ANONYMOUS , 0x22 )
20
23
You can’t perform that action at this time.
0 commit comments