synchronization-benchmarks icon indicating copy to clipboard operation
synchronization-benchmarks copied to clipboard

Sanitize the invalid input so that lockhammer will stop if it detects wrong parameter

Open zoybai opened this issue 7 years ago • 1 comments

Sanitize the invalid input so that lockhammer will stop if it detects wrong parameter

"lh_swap_mutex -c [0, 1, 2, 3]" succeeds in shell, which should be stopped because the -c parameter is invalid.

zoybai avatar Nov 12 '18 21:11 zoybai

Please be careful that the sanitization implementation doesn't break the support for test-specific arguments. Perhaps each subtest which defines its own arguments should provide a helper which checks any arguments that the main code doesn't understand.

lucasclucasdo avatar Nov 17 '18 15:11 lucasclucasdo