Skip to content

Commit

Permalink
fixup! [LibOS] Introduce sys.fds.limit manifest option
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitrii Kuvaiskii <[email protected]>
  • Loading branch information
Dmitrii Kuvaiskii committed Aug 21, 2024
1 parent 8d4dfa3 commit aeacda6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions libos/test/regression/rlimit_nofile.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* SPDX-License-Identifier: LGPL-3.0-or-later */
/* Copyright (C) 2024 Intel Corporation */

#include <err.h>
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
Expand Down
2 changes: 2 additions & 0 deletions libos/test/regression/test_libos.py
Original file line number Diff line number Diff line change
Expand Up @@ -1070,6 +1070,7 @@ def test_160_rlimit_nofile(self):
self.assertIn("old RLIMIT_NOFILE soft limit: 900", stdout)
self.assertIn("(before setrlimit) opened fd: 899", stdout)
self.assertIn("new RLIMIT_NOFILE soft limit: 901", stdout)
self.assertIn("(in child, after setrlimit) opened fd: 900", stdout)
self.assertIn("(after setrlimit) opened fd: 900", stdout)
self.assertIn("TEST OK", stdout)

Expand All @@ -1079,6 +1080,7 @@ def test_161_rlimit_nofile_4k(self):
self.assertIn("old RLIMIT_NOFILE soft limit: 4096", stdout)
self.assertIn("(before setrlimit) opened fd: 4095", stdout)
self.assertIn("new RLIMIT_NOFILE soft limit: 4097", stdout)
self.assertIn("(in child, after setrlimit) opened fd: 4096", stdout)
self.assertIn("(after setrlimit) opened fd: 4096", stdout)
self.assertIn("TEST OK", stdout)

Expand Down

0 comments on commit aeacda6

Please sign in to comment.