Skip to content

Commit ef2e8b4

Browse files
committed
style: fix DragonFly CI checks
1 parent cc8bcd8 commit ef2e8b4

3 files changed

Lines changed: 39 additions & 13 deletions

File tree

ctest/src/runner.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ pub fn generate_test(
9191
cfg.cpp(matches!(generator.language, Language::CXX));
9292

9393
let stem: &str = output_file_path.file_stem().unwrap().to_str().unwrap();
94-
cfg.out_dir(output_file_path.parent().unwrap()).compile(stem);
94+
cfg.out_dir(output_file_path.parent().unwrap())
95+
.compile(stem);
9596

9697
Ok(output_file_path)
9798
}

libc-test/build.rs

Lines changed: 33 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1694,11 +1694,24 @@ fn test_dragonflybsd(target: &str) {
16941694
| "DTYPE_CRYPTO" | "DTYPE_MQUEUE" | "DTYPE_DMABUF" => true,
16951695

16961696
// Not exposed by current DragonFly userland headers.
1697-
"REG_DUMP" | "REG_ASSERT" | "REG_ATOI" | "REG_ITOA" | "REG_TRACE" | "REG_LARGE"
1698-
| "IP_ADD_SOURCE_MEMBERSHIP" | "IP_DROP_SOURCE_MEMBERSHIP" | "IP_BLOCK_SOURCE"
1699-
| "IP_UNBLOCK_SOURCE" | "MAP_RENAME" | "MAP_NORESERVE" | "CTL_UNSPEC"
1700-
| "KERN_PROF" | "CTL_P1003_1B_UNUSED1" | "CTL_P1003_1B_SEM_VALUE_MAX"
1701-
| "DOWNTIME" | "SF_CACHE" => true,
1697+
"REG_DUMP"
1698+
| "REG_ASSERT"
1699+
| "REG_ATOI"
1700+
| "REG_ITOA"
1701+
| "REG_TRACE"
1702+
| "REG_LARGE"
1703+
| "IP_ADD_SOURCE_MEMBERSHIP"
1704+
| "IP_DROP_SOURCE_MEMBERSHIP"
1705+
| "IP_BLOCK_SOURCE"
1706+
| "IP_UNBLOCK_SOURCE"
1707+
| "MAP_RENAME"
1708+
| "MAP_NORESERVE"
1709+
| "CTL_UNSPEC"
1710+
| "KERN_PROF"
1711+
| "CTL_P1003_1B_UNUSED1"
1712+
| "CTL_P1003_1B_SEM_VALUE_MAX"
1713+
| "DOWNTIME"
1714+
| "SF_CACHE" => true,
17021715

17031716
// libc exposes the 6.0-compatible value for this version-dependent mask.
17041717
"KERN_PROC_FLAGMASK" => true,
@@ -1707,9 +1720,21 @@ fn test_dragonflybsd(target: &str) {
17071720
"CPUCTL_RSMSR" | "UTX_DB_LASTLOG" => true,
17081721

17091722
// Introduced after DragonFly 5.8.
1710-
"AF_ARP" | "PF_ARP" | "IP_SENDSRCADDR" | "F_GETPATH" | "ENOTRECOVERABLE" | "EOWNERDEAD"
1711-
| "SO_PASSCRED" | "PROC_PDEATHSIG_CTL" | "PROC_PDEATHSIG_STATUS"
1712-
| "KERN_STATIC_TLS_EXTRA" | "KERN_MAXID" if dragonfly_version < 600_000 => true,
1723+
"AF_ARP"
1724+
| "PF_ARP"
1725+
| "IP_SENDSRCADDR"
1726+
| "F_GETPATH"
1727+
| "ENOTRECOVERABLE"
1728+
| "EOWNERDEAD"
1729+
| "SO_PASSCRED"
1730+
| "PROC_PDEATHSIG_CTL"
1731+
| "PROC_PDEATHSIG_STATUS"
1732+
| "KERN_STATIC_TLS_EXTRA"
1733+
| "KERN_MAXID"
1734+
if dragonfly_version < 600_000 =>
1735+
{
1736+
true
1737+
}
17131738

17141739
// weird signed extension or something like that?
17151740
"MS_NOUSER" => true,

libc-test/semver/dragonfly.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -286,11 +286,11 @@ EV_ONESHOT
286286
EV_RECEIPT
287287
EV_SYSFLAGS
288288
EXTA
289-
EXTB
290-
EXTPROC
291289
EXTATTR_NAMESPACE_EMPTY
292290
EXTATTR_NAMESPACE_SYSTEM
293291
EXTATTR_NAMESPACE_USER
292+
EXTB
293+
EXTPROC
294294
Elf32_Addr
295295
Elf32_Half
296296
Elf32_Lword
@@ -1451,8 +1451,8 @@ initgroups
14511451
ipc_perm
14521452
issetugid
14531453
jrand48
1454-
key_t
14551454
kevent
1455+
key_t
14561456
killpg
14571457
kinfo_cputime
14581458
kinfo_file
@@ -1657,9 +1657,9 @@ setutxent
16571657
sf_hdtr
16581658
shmat
16591659
shmctl
1660-
shmid_ds
16611660
shmdt
16621661
shmget
1662+
shmid_ds
16631663
sigaltstack
16641664
sigevent
16651665
siginfo_t

0 commit comments

Comments
 (0)