ARM-software / synchronization-benchmarks

Collection of synchronization micro-benchmarks and traces from infrastructure applications
Other
37 stars 36 forks source link

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

Open zoybai opened 5 years ago

zoybai commented 5 years ago

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.

lucasclucasdo commented 5 years ago

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.