(args, expected)
| 8493 | |
| 8494 | def test_sysconf_phys_pages(self): |
| 8495 | def run(args, expected): |
| 8496 | cmd = [EMCC, test_file('unistd/sysconf_phys_pages.c')] + args |
| 8497 | print(str(cmd)) |
| 8498 | self.run_process(cmd) |
| 8499 | result = self.run_js('a.out.js').strip() |
| 8500 | self.assertEqual(result, f'{expected}, errno: 0') |
| 8501 | |
| 8502 | run([], 258) |
| 8503 | run(['-sINITIAL_MEMORY=32MB'], 512) |
no test coverage detected