BLI: add function for changing working directory #104525

Merged
Sybren A. Stüvel merged 11 commits from SonnyCampbell_Unity/blender:change-working-directory into main 2023-02-20 15:58:49 +01:00

11 Commits

Author SHA1 Message Date
Sybren A. Stüvel 352d7f2a9c Merge branch 'main' into change-working-directory 2023-02-20 15:15:34 +01:00
DESKTOP-ON14TH5\Sonny Campbell d3b457a1b0 Separate assertion for creating directory and changing working directory. 2023-02-17 10:39:08 +00:00
DESKTOP-ON14TH5\Sonny Campbell e988efdbab Create test fixture to clean up test after execution. 2023-02-17 10:34:09 +00:00
DESKTOP-ON14TH5\Sonny Campbell de3e00ccc3 Fix formatting and and comment to closing `#endif`. 2023-02-15 12:38:22 +00:00
DESKTOP-ON14TH5\Sonny Campbell a57007d8f4 Merge branch 'change-working-directory' of projects.blender.org:SonnyCampbell_Unity/blender into change-working-directory 2023-02-15 12:37:06 +00:00
DESKTOP-ON14TH5\Sonny Campbell 7b348a8475 Removed _apple_ functions and replaced with #if guards for CWD utility helpers
buildbot/vexp-code-patch-coordinator Build done. Details
2023-02-15 12:11:04 +01:00
DESKTOP-ON14TH5\Sonny Campbell 311b776522 Add messaging to test cases. Use `std::tmpnam` for creating a temporary file. 2023-02-15 12:11:03 +01:00
DESKTOP-ON14TH5\Sonny Campbell a75403ea7a T99807: Separate logic for changing working directory.
Set dir parameter to const for BLI_change_working_dir.
Added non-ASCII characters to the test directory.

Mac and Linux fixes. Linux now sets PWD when using BLI_change_working_dir. Mac uses NSFileManager through some new Mac-only wrapper functions.

Changed temporary directory to use a directory in the flags_test_asset_dir.
Ensure that operation to change working directory is from the main thread.
2023-02-15 12:11:03 +01:00
DESKTOP-ON14TH5\Sonny Campbell a7d9b4329b Removed _apple_ functions and replaced with #if guards for CWD utility helpers
buildbot/vexp-code-patch-coordinator Build done. Details
2023-02-15 09:51:26 +00:00
DESKTOP-ON14TH5\Sonny Campbell 74de514dcc Add messaging to test cases. Use `std::tmpnam` for creating a temporary file. 2023-02-13 14:24:48 +00:00
DESKTOP-ON14TH5\Sonny Campbell 96aa7ab367 T99807: Separate logic for changing working directory.
Set dir parameter to const for BLI_change_working_dir.
Added non-ASCII characters to the test directory.

Mac and Linux fixes. Linux now sets PWD when using BLI_change_working_dir. Mac uses NSFileManager through some new Mac-only wrapper functions.

Changed temporary directory to use a directory in the flags_test_asset_dir.
Ensure that operation to change working directory is from the main thread.
2023-02-09 15:55:42 +00:00