Skip to content

Commit 3312c77

Browse files
authored
Merge pull request #320 from sio2project/fix-sysctl-syntax
Fix sysctl syntax
2 parents d23c293 + d9abe23 commit 3312c77

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/sinol_make/commands/inwer/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def verify_and_print_table(self) -> Dict[str, TestResult]:
105105

106106
if sanitizer_error:
107107
print(util.warning('Warning: if inwer failed due to sanitizer errors, you can either run '
108-
'`sudo sysctl vm.mmap_rnd_bits = 28` to fix this or disable sanitizers with the '
108+
'`sudo sysctl vm.mmap_rnd_bits=28` to fix this or disable sanitizers with the '
109109
'--no-fsanitize flag.'))
110110
if keyboard_interrupt:
111111
util.exit_with_error('Keyboard interrupt.')

src/sinol_make/commands/verify/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def configure_subparser(self, subparser):
3333
'verify the config, generate tests, generate problem '
3434
'statements, run inwer and run all solutions. '
3535
'Ingen and inwer are compiled with sanitizers (-fsanitize=address,undefined), '
36-
'which may fail on some systems. To fix this, run `sudo sysctl vm.mmap_rnd_bits = 28` '
36+
'which may fail on some systems. To fix this, run `sudo sysctl vm.mmap_rnd_bits=28` '
3737
'or disable sanitizers with --no-fsanitize.'
3838
)
3939

src/sinol_make/helpers/parsers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def add_compilation_arguments(parser: argparse.ArgumentParser, custom_sanitize_h
3838
' no - no sanitizers\n'
3939
' simple - use address and undefined sanitizer\n'
4040
' full - use a lot of sanitizers, full list: https://codeforces.com/blog/entry/15547\n'
41-
'Sanitizers may fail on some systems. To fix this, run `sudo sysctl vm.mmap_rnd_bits = 28`. ' + \
41+
'Sanitizers may fail on some systems. To fix this, run `sudo sysctl vm.mmap_rnd_bits=28`. ' + \
4242
custom_sanitize_help,)
4343

4444

@@ -52,7 +52,7 @@ def add_cpus_argument(parser: argparse.ArgumentParser, help: str):
5252
def add_fsanitize_argument(parser: argparse.ArgumentParser):
5353
parser.add_argument('-f', '--fsanitize', default=False, action='store_true',
5454
help='Use -fsanitize=address,undefined for compilation. Warning: this may fail on some '
55-
'systems. Tof fix this, run `sudo sysctl vm.mmap_rnd_bits = 28`.')
55+
'systems. To fix this, run `sudo sysctl vm.mmap_rnd_bits=28`.')
5656

5757

5858
def add_time_tool_argument(parser: argparse.ArgumentParser):

0 commit comments

Comments
 (0)