Skip to content

Commit

Permalink
Add delete testing for windows and update "clean"
Browse files Browse the repository at this point in the history
  • Loading branch information
lerno committed Oct 11, 2023
1 parent b657724 commit 04cd951
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ jobs:
run: |
cd resources/testproject
..\..\build\${{ matrix.build_type }}\c3c.exe --debug-log run hello_world_win32
dir build
..\..\build\${{ matrix.build_type }}\c3c.exe clean
dir build
- name: Build testproject lib
run: |
Expand Down
2 changes: 1 addition & 1 deletion src/utils/file_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -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\" 2>nul";
#else
const char *cmd = "rm -f %s/*%s";
#endif
Expand Down

0 comments on commit 04cd951

Please sign in to comment.