diff options
author | Mitya Selivanov <automainint@guattari.tech> | 2024-06-06 13:53:25 +0200 |
---|---|---|
committer | Mitya Selivanov <automainint@guattari.tech> | 2024-06-06 13:53:25 +0200 |
commit | 23e0f7f446b9a27f6ac8ae3f646719324dfac781 (patch) | |
tree | 3c63fe3d6d086390cecfc00c178289ba7eb3bd36 | |
parent | 4863341834073b05beb594410919f94da5a7bd0b (diff) | |
download | kit-23e0f7f446b9a27f6ac8ae3f646719324dfac781.zip |
[build] debug
-rwxr-xr-x | build.c | 21 |
1 files changed, 15 insertions, 6 deletions
@@ -11,6 +11,16 @@ exit $? #include <stdarg.h> #include <assert.h> +#if defined(_WIN32) && !defined(__CYGWIN__) +# ifndef WIN32_LEAN_AND_MEAN +# define WIN32_LEAN_AND_MEAN 1 +# endif +# ifndef NOMINMAX +# define NOMINMAX +# endif +# include <windows.h> +#endif + #define PROJECT "kit" #define SOURCE_LIB "source/kit/_lib.c" #define FOLDER_TESTS "source/tests/" @@ -550,16 +560,15 @@ i32 main(i32 argc, c8 **argv) { } fflush(stdout); - printf(" .. clean\n"); fflush(stdout); system(fmt("\"." DLM "%s" DLM "test_interprocess\" clean", destination)); - printf(" .. reader\n"); fflush(stdout); - if (OS == WINDOWS) + + if (OS == WINDOWS) { system(fmt("start "" \"." DLM "%s" DLM "test_interprocess\" reader", destination)); - else + } else system(fmt("\"." DLM "%s" DLM "test_interprocess\" reader &", destination)); - printf(" .. writer\n"); fflush(stdout); + code = system(fmt("\"." DLM "%s" DLM "test_interprocess\" writer", destination)); - printf(" .. done\n"); fflush(stdout); + if (code == 0) printf("interprocess - OK\n"); else { |