Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/libs/zbxsysinfo/linux/kernel_maxfiles.yaml')
-rw-r--r--tests/libs/zbxsysinfo/linux/kernel_maxfiles.yaml16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/libs/zbxsysinfo/linux/kernel_maxfiles.yaml b/tests/libs/zbxsysinfo/linux/kernel_maxfiles.yaml
new file mode 100644
index 00000000000..b0d6628c6eb
--- /dev/null
+++ b/tests/libs/zbxsysinfo/linux/kernel_maxfiles.yaml
@@ -0,0 +1,16 @@
+---
+test case: "successfully read"
+files:
+ /proc/sys/fs/file-max: |
+ 1612713
+out:
+ result: '1612713'
+ return: 'SYSINFO_RET_OK'
+---
+test case: "unsuccessfully read"
+files:
+ /proc/sys/fs/file-max: |
+
+out:
+ result: 'Cannot obtain data from /proc/sys/fs/file-max.'
+ return: 'SYSINFO_RET_FAIL'