(self)
| 169 | @unittest.skipIf(sys.platform.startswith('aix'), |
| 170 | "the first page of memory is a mapped read-only on AIX") |
| 171 | def test_read_null(self): |
| 172 | if not MS_WINDOWS: |
| 173 | self.check_fatal_error(""" |
| 174 | import faulthandler |
| 175 | faulthandler.enable() |
| 176 | faulthandler._read_null() |
| 177 | """, |
| 178 | 3, |
| 179 | # Issue #12700: Read NULL raises SIGILL on Mac OS X Lion |
| 180 | '(?:Segmentation fault' |
| 181 | '|Bus error' |
| 182 | '|Illegal instruction)') |
| 183 | else: |
| 184 | self.check_windows_exception(""" |
| 185 | import faulthandler |
| 186 | faulthandler.enable() |
| 187 | faulthandler._read_null() |
| 188 | """, |
| 189 | 3, |
| 190 | 'access violation') |
| 191 | |
| 192 | @skip_segfault_on_android |
| 193 | def test_sigsegv(self): |
nothing calls this directly
no test coverage detected