-
Notifications
You must be signed in to change notification settings - Fork 654
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1703: add haiku support r=rtzoeller a=hoanga hello, the following changeset(s) adds support for compiling on haiku. below is an sample run showing compilation ```sh > uname -a Haiku shredder 1 hrev56040 Apr 22 2022 06:24:48 x86_64 x86_64 Haiku > cargo build Compiling autocfg v1.1.0 Compiling libc v0.2.123 Compiling bitflags v1.3.2 Compiling cfg-if v1.0.0 Compiling memoffset v0.6.5 Compiling nix v0.24.1 (/boot/home/src/git/rust-libs/nix) Finished dev [unoptimized + debuginfo] target(s) in 11.09s ``` and some results from running ```cargo test```: ```sh running 32 tests test sys::select::tests::fdset_clear ... ok test sys::select::tests::fdset_insert ... ok test sys::select::tests::fdset_highest ... ok test sys::select::tests::fdset_fds ... ok test sys::select::tests::fdset_remove ... ok test sys::signal::tests::test_clear ... ok test sys::select::tests::test_select ... ok test sys::select::tests::test_select_nfds2 ... ok test sys::signal::tests::test_contains ... ok test sys::select::tests::test_select_nfds ... ok test sys::signal::tests::test_extend ... ok test sys::signal::tests::test_from_and_into_iterator ... ok test sys::signal::tests::test_from_str_invalid_value ... ok test sys::signal::tests::test_from_str_round_trips ... ok test sys::signal::tests::test_sigaction ... ok test sys::signal::tests::test_sigwait ... ok test sys::signal::tests::test_thread_signal_set_mask ... ok test sys::statvfs::test::fstatvfs_call ... ok test sys::statvfs::test::statvfs_call ... ok test sys::termios::test::try_from ... ok test sys::signal::tests::test_thread_signal_swap ... ok test sys::signal::tests::test_thread_signal_block ... ok test sys::signal::tests::test_thread_signal_unblock ... ok test sys::time::test::test_timespec ... ok test sys::time::test::test_timespec_from ... ok test sys::time::test::test_timespec_neg ... ok test sys::time::test::test_timespec_fmt ... ok test sys::time::test::test_timespec_ord ... ok test sys::time::test::test_timeval ... ok test sys::time::test::test_timeval_neg ... ok test sys::time::test::test_timeval_fmt ... ok test sys::time::test::test_timeval_ord ... ok test result: ok. 32 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Running test/test.rs (target/debug/deps/test-6e8a70ba3d8f7447) running 73 tests test sys::test_pthread::test_pthread_kill_none ... ok test sys::test_pthread::test_pthread_self ... ok test sys::test_select::test_pselect_nfds2 ... ok test sys::test_select::test_pselect ... ok test sys::test_signal::test_kill_none ... ok test sys::test_signal::test_killpg_none ... ok test sys::test_signal::test_old_sigaction_flags ... ok test sys::test_signal::test_signal ... ok test sys::test_signal::test_sigprocmask ... ok test sys::test_signal::test_signal_sigaction ... ok test sys::test_signal::test_sigprocmask_noop ... ok test sys::test_select::test_fdset_negative_fd::contains - should panic ... ok test sys::test_select::test_fdset_negative_fd::remove - should panic ... ok test sys::test_select::test_fdset_negative_fd::insert - should panic ... ok test sys::test_select::test_fdset_too_large_fd::contains - should panic ... ok test sys::test_select::test_fdset_too_large_fd::insert - should panic ... ok test sys::test_select::test_fdset_too_large_fd::remove - should panic ... ok test sys::test_wait::test_wait_exit ... ok test sys::test_wait::test_waitid_pid ... ok test sys::test_uio::test_readv ... ok test sys::test_wait::test_waitstatus_from_raw ... FAILED test sys::test_wait::test_waitstatus_pid ... ok test sys::test_uio::test_writev ... ok test test_net::test_if_nametoindex ... ok test test_dir::rewind ... ok test test_poll::test_pollfd_events ... ok test test_poll::test_pollfd_fd ... ok test sys::test_uio::test_pwrite ... ok test sys::test_uio::test_pread ... ok test test_fcntl::test_readlink ... ok test test_fcntl::test_openat ... ok test test_dir::read ... ok test test_stat::test_fstatat ... ok test test_stat::test_mkdirat_fail ... ok test test_time::test_clock_gettime ... ok test test_stat::test_fchmod ... ok test test_stat::test_fchmodat ... ok test test_time::test_clock_id_now ... ok test test_fcntl::test_renameat ... ok test test_stat::test_mkdirat_success_path ... ok test test_stat::test_stat_and_fstat ... ok test test_unistd::test_execvpe::test_cstr_ref ... ok test test_unistd::test_access_not_existing ... ok test test_unistd::test_execvpe::test_cstring ... ok test test_unistd::test_access_file_exists ... ok test test_stat::test_stat_fstat_lstat ... ok test test_unistd::test_fchdir ... ok test test_unistd::test_fork_and_waitpid ... ok test test_unistd::test_fchown ... ok test test_unistd::test_chown ... ok test test_unistd::test_getpid ... ok test test_unistd::test_getsid ... ok test test_unistd::test_fpathconf_limited ... ok test test_unistd::test_lseek ... ok test test_unistd::test_mkfifo_directory ... ok test test_unistd::test_fchownat ... ok test test_unistd::test_mkstemp_directory ... ok test test_unistd::test_pathconf_limited ... ok test test_unistd::test_pipe ... ok test test_unistd::test_sysconf_limited ... ok test test_unistd::test_mkfifo ... ok test test_unistd::test_ttyname_not_pty ... ok test test_unistd::test_ftruncate ... ok test test_unistd::test_mkstemp ... ok test test_poll::test_poll ... ok test test_unistd::test_wait ... ok test test_unistd::test_unlinkat_dir_removedir ... ok test test_unistd::test_unlinkat_file ... ok test test_unistd::test_unlinkat_dir_noremovedir ... ok test test_unistd::test_truncate ... ok test test_unistd::test_getcwd ... ok test test_unistd::test_alarm ... ok test test_unistd::test_canceling_alarm ... ok failures: ---- sys::test_wait::test_waitstatus_from_raw stdout ---- thread 'sys::test_wait::test_waitstatus_from_raw' panicked at 'assertion failed: `(left == right)` left: `Ok(Exited(Pid(1), 2))`, right: `Ok(Signaled(Pid(1), SIGINT, false))`', test/sys/test_wait.rs:93:5 failures: sys::test_wait::test_waitstatus_from_raw test result: FAILED. 72 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.06s error: test failed, to rerun pass '--test test' ``` Co-authored-by: Al Hoang <3811822-hoanga@users.noreply.gitlab.com>
- Loading branch information
Showing
30 changed files
with
424 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,6 +36,7 @@ status = [ | |
"iOS aarch64", | ||
"iOS x86_64", | ||
"Illumos", | ||
"Haiku x86_64", | ||
] | ||
|
||
# Set bors's timeout to 1 hour | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.