Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/qbuild/context/context.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include <qbuild/qbuild.internal.h>

bool test_qbuild_context_create_destroy() {
test_run_log("qbuild_context_create_destroy");
test_run_log();
qbuild_context_t ctx;

bool success = 1;
Expand Down
4 changes: 2 additions & 2 deletions test/qbuild/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include <qbuild/qbuild.internal.h>

bool test_qbuild_file_path_seperate() {
test_run_log("qbuild_file_path_seperate");
test_run_log();
const char sample[] = "test1.txt:test2.txt:test3.txt:test4.txt:test5.txt";
size_t size;
char **res;
Expand All @@ -20,7 +20,7 @@ bool test_qbuild_file_path_seperate() {
}

bool test_qbuild_file_exists() {
test_run_log("qbuild_file_exists");
test_run_log();

bool success = 1;
success &= qbuild_file_exists("Makefile");
Expand Down
2 changes: 1 addition & 1 deletion test/qbuild/platform/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include <qbuild/qbuild.internal.h>

bool test_qbuild_platform_host_name() {
test_run_log("qbuild_platform_host_name");
test_run_log();
char *host = qbuild_platform_host_name();

bool success = true;
Expand Down
2 changes: 1 addition & 1 deletion test/qbuild/project/project.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <string.h>

bool test_qbuild_project_load() {
test_run_log("qbuild_project_load");
test_run_log();
qbuild_project_t p;

bool success = true;
Expand Down
2 changes: 1 addition & 1 deletion test/qbuild/string.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include <qbuild/qbuild.internal.h>

bool test_qbuild_string_lower() {
test_run_log("qbuild_string_lower");
test_run_log();
char upper[] = "ASDfdsg/%_+";
char lower[] = "asdfdsg/%_+";

Expand Down
4 changes: 2 additions & 2 deletions test/test.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ extern "C" {
#endif

#define array_len(a) (sizeof(a) / sizeof(a[0]))
#define test_run_log(m) printf("[*] Running test %s: ", m)
#define test_result_log(s) printf("%s\n", s ? "passed" : "failed")
#define test_run_log() printf("[*] Running %s\n", __func__)
#define test_result_log(s) printf("[%c] %s\n", s ? '+' : '-', s ? "passed" : "failed")

#ifdef __cplusplus
}
Expand Down
Loading