From 824f38f8c60a3bb4a89279f5bd81bde44a3dbeff Mon Sep 17 00:00:00 2001 From: Christoffer Lerno Date: Wed, 11 Oct 2023 13:05:29 +0200 Subject: [PATCH] Add delete testing for windows and update "clean" --- .github/workflows/main.yml | 3 +++ src/utils/file_utils.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 53cca32fe..b3ca2c70c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -46,7 +46,10 @@ jobs: run: | cd resources/testproject ..\..\build\${{ matrix.build_type }}\c3c.exe --debug-log run hello_world_win32 + dir build\tmp ..\..\build\${{ matrix.build_type }}\c3c.exe clean + dir build\tmp + - name: Build testproject lib run: | diff --git a/src/utils/file_utils.c b/src/utils/file_utils.c index 7df5a7b7a..8aca5e2e9 100644 --- a/src/utils/file_utils.c +++ b/src/utils/file_utils.c @@ -485,7 +485,7 @@ bool file_delete_all_files_in_dir_with_suffix(const char *path, const char *suff { assert(path); #if (_MSC_VER) - const char *cmd = "del /q \"%s\\*%s\""; + const char *cmd = "del /q \"%s\\*%s\" >nul 2>&1"; #else const char *cmd = "rm -f %s/*%s"; #endif