summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/.clang-tidy1
-rw-r--r--test/test_plugin.lv2/test_plugin.c4
2 files changed, 2 insertions, 3 deletions
diff --git a/test/.clang-tidy b/test/.clang-tidy
index d359da0..4ef27ee 100644
--- a/test/.clang-tidy
+++ b/test/.clang-tidy
@@ -7,7 +7,6 @@ Checks: >
-android-cloexec-fopen,
-bugprone-branch-clone,
-bugprone-narrowing-conversions,
- -bugprone-suspicious-string-compare,
-cert-err33-c,
-clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,
-concurrency-mt-unsafe,
diff --git a/test/test_plugin.lv2/test_plugin.c b/test/test_plugin.lv2/test_plugin.c
index a0deccc..582fd9b 100644
--- a/test/test_plugin.lv2/test_plugin.c
+++ b/test/test_plugin.lv2/test_plugin.c
@@ -305,7 +305,7 @@ save(LV2_Handle instance,
char* apath = map_path->abstract_path(map_path->handle, tmp_file_path);
char* apath2 = map_path->abstract_path(map_path->handle, tmp_file_path);
free(tmp_file_path);
- if (strcmp(apath, apath2)) {
+ if (!!strcmp(apath, apath2)) {
fprintf(stderr, "error: Path %s != %s\n", apath, apath2);
}
@@ -407,7 +407,7 @@ restore(LV2_Handle instance,
char str[8];
size_t n_read = fread(str, 1, sizeof(str), f);
fclose(f);
- if (strncmp(str, "Hello\n", n_read)) {
+ if (!!strncmp(str, "Hello\n", n_read)) {
fprintf(
stderr, "error: Restored bad file contents `%s' != `Hello'\n", str);
}