Skip to content

Commit e66cce6

Browse files
committed
tests: allow missing path on Solaris for opened regular file
1 parent ce581b0 commit e66cce6

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

‎tests/LTbasic2.c‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,12 @@ int main(int argc, char **argv) {
142142
/* check if fd matches */
143143
if (f->fd_num == fd && f->inode == tmp_stat.st_ino &&
144144
f->dev == tmp_stat.st_dev) {
145-
#if defined(LT_DIAL_netbsd) || defined(LT_DIAL_openbsd)
145+
#if defined(LT_DIAL_netbsd) || defined(LT_DIAL_openbsd) || \
146+
defined(LT_DIAL_solaris)
146147
/* OpenBSD cannot report regular-file paths; NetBSD
147-
* may not report paths for newly created files.
148-
* Descriptor, inode, and device must still match. */
148+
* and Solaris/illumos may not report paths for newly
149+
* created files. Descriptor, inode, and device must
150+
* still match. */
149151
fd_found = 1;
150152
#else
151153
if (f->name && strstr(f->name, "LTbasic2-tmp")) {

0 commit comments

Comments
 (0)