(self)
| 105 | return values |
| 106 | |
| 107 | def load_flags_auxv(self): |
| 108 | auxv = subprocess.check_output(['/bin/true'], env=dict(LD_SHOW_AUXV="1")) |
| 109 | for at in auxv.split(b'\n'): |
| 110 | if not at.startswith(b"AT_HWCAP"): |
| 111 | continue |
| 112 | hwcap_value = [s.strip() for s in at.split(b':', 1)] |
| 113 | if len(hwcap_value) == 2: |
| 114 | self.features_flags = self.features_flags.union( |
| 115 | hwcap_value[1].upper().decode().split() |
| 116 | ) |
| 117 | |
| 118 | @pytest.mark.skipif( |
| 119 | sys.platform == 'emscripten', |
no test coverage detected