diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-11-11 18:50:08 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-11-11 18:50:08 +0900 |
| commit | b2338b9bd163406252028bbb6dee5431d52170a6 (patch) | |
| tree | d3565c65ec782da269e2ff07f1eddc4ea7a80434 | |
| parent | 7774f6c21100df2d7fd8bb269e3df28638af7d73 (diff) | |
cmd/hakurei/testsuite: replace argument for fd test
In the Rosa OS environment, 5 ends up left open when the file itself is
removed. This causes EINVAL. This change replaces the fd number instead.
Signed-off-by: Ophestra <cat@gensokyo.uk>
| -rw-r--r-- | cmd/hakurei/testsuite/main.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cmd/hakurei/testsuite/main.go b/cmd/hakurei/testsuite/main.go index 2c4ff8e3..2a45d545 100644 --- a/cmd/hakurei/testsuite/main.go +++ b/cmd/hakurei/testsuite/main.go @@ -325,7 +325,11 @@ func main() { wg.Go(func() { if _, _, err := testsuite.StartHakurei( ctx, &wg, &cred, dbusEnv, func(cmd *exec.Cmd) { - cmd.ExtraFiles = cmd.ExtraFiles[:len(cmd.ExtraFiles)-1] + cmd.Args[5] = strings.Replace(cmd.Args[5], + "--identifier-fd=5", + "--identifier-fd=32767", + 1, + ) }, func(err error, output string) { defer log.Println("validated bad identifier fd") |
