for (InOutSpec *spec = in_out_specs; spec->in_kernel_tree_path; ++spec)
{
bool is_ok = true;
- if (spec->in_kernel_tree_path != "")
+ if (strcmp(spec->in_kernel_tree_path, ""))
in_kernel_tree_path = tests_src_dir + spec->in_kernel_tree_path;
else
in_kernel_tree_path = "";
in_vmlinux_path = tests_src_dir + spec->in_vmlinux_path;
- if (spec->in_kmi_stablelist_path && spec->in_kmi_stablelist_path != "")
+ if (spec->in_kmi_stablelist_path
+ && strcmp(spec->in_kmi_stablelist_path, ""))
in_kmi_stablelist_path = tests_src_dir + spec->in_kmi_stablelist_path;
else
in_kmi_stablelist_path = "";
std::ostringstream o;
o << abidw << " --abidiff ";
- if (spec->options && spec->options != "")
+ if (spec->options && strcmp(spec->options, ""))
o << spec->options;
if (in_kmi_stablelist_path != "")