Upgrade invalid -e kvm= argument to a fatal error
* filter_qualify.c (qualify_kvm): Call error_msg_and_die instead of error_msg in case of invalid -e kvm= argument. * tests/options-syntax.test: Check it.
This commit is contained in:
parent
4a48f6b3e8
commit
b39cb830af
@ -415,7 +415,7 @@ qualify_kvm(const char *const str)
|
||||
else
|
||||
error_msg("-e kvm=vcpu option needs Linux 4.16.0 or higher");
|
||||
} else {
|
||||
error_msg("unknown value for -e kvm= option: %s", str);
|
||||
error_msg_and_die("invalid -e kvm= argument: '%s'", str);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
@ -66,6 +66,7 @@ check_h "incorrect personality designator '42' in qualification 'getcwd@42'" -e
|
||||
check_h "incorrect personality designator '42' in qualification '23@42'" -e trace=23@42,123
|
||||
|
||||
check_e "invalid system call '/getcwd@ohmy'" -e trace=/getcwd@ohmy
|
||||
check_e "invalid -e kvm= argument: 'chdir'" -e kvm=chdir
|
||||
|
||||
case "$STRACE_NATIVE_ARCH" in
|
||||
x86_64)
|
||||
|
Loading…
Reference in New Issue
Block a user