diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-06-25 18:05:50 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-06-26 00:20:05 +0900 |
| commit | e0ba36807619780ff645efe0117281d32d5ace2a (patch) | |
| tree | b445222994d13466d3531b2dad5dedebeaca247e /crates/shirabe/src | |
| parent | d4ec1dcb6fc04ff029ded35cc2fcc14f3bbc02ad (diff) | |
| download | php-shirabe-e0ba36807619780ff645efe0117281d32d5ace2a.tar.gz php-shirabe-e0ba36807619780ff645efe0117281d32d5ace2a.tar.zst php-shirabe-e0ba36807619780ff645efe0117281d32d5ace2a.zip | |
test: recover binary_installer full-compat port; implement posix_getpwuid
The stashed binary_installer port was blocked on posix_getpwuid (reached via
Platform::is_virtual_box_guest); implement it via getpwuid(3) extern "C". The
4 install-and-exec tests now pass with the stream I/O and Process cwd fixes.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/src')
| -rw-r--r-- | crates/shirabe/src/package/handle.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/crates/shirabe/src/package/handle.rs b/crates/shirabe/src/package/handle.rs index 7ef7e98..83a5d47 100644 --- a/crates/shirabe/src/package/handle.rs +++ b/crates/shirabe/src/package/handle.rs @@ -1223,6 +1223,15 @@ macro_rules! impl_real_package_test_setters { .set_type(r#type); } + /// For testing only: mirrors PHP `Package::setBinaries`. + pub fn __set_binaries(&self, binaries: Vec<String>) { + self.0 + .borrow_mut() + .as_package_mut() + .expect("real package handle invariant") + .set_binaries(binaries); + } + /// For testing only: mirrors PHP `Package::setSourceType`. pub fn __set_source_type(&self, r#type: Option<String>) { self.0 |
