summaryrefslogtreecommitdiff
path: root/testcases/024-cpu-usage-invalid-cpu
diff options
context:
space:
mode:
authorIngo Bürk <admin@airblader.de>2018-10-26 09:24:45 +0200
committerGitHub <noreply@github.com>2018-10-26 09:24:45 +0200
commitbe5f38e0a63a0ba96b27bc3375649c58b6df9b6d (patch)
treed2ccdbb8cebb08fe381d90952e897af297c681ab /testcases/024-cpu-usage-invalid-cpu
parent13f720ab752d61447cf7b4c06cd9a011b0d17bea (diff)
parentaa572d24b5ecf16a064f924548ed1926b7b231d6 (diff)
Merge pull request #318 from gportay/fix-invalid-cpu-placeholder
print_cpu_usage: fix invalid %cpu placeholder output
Diffstat (limited to 'testcases/024-cpu-usage-invalid-cpu')
-rw-r--r--testcases/024-cpu-usage-invalid-cpu/expected_output.pl7
-rw-r--r--testcases/024-cpu-usage-invalid-cpu/i3status.conf9
2 files changed, 16 insertions, 0 deletions
diff --git a/testcases/024-cpu-usage-invalid-cpu/expected_output.pl b/testcases/024-cpu-usage-invalid-cpu/expected_output.pl
new file mode 100644
index 0000000..45111a6
--- /dev/null
+++ b/testcases/024-cpu-usage-invalid-cpu/expected_output.pl
@@ -0,0 +1,7 @@
+#!/usr/bin/env perl
+
+use v5.10;
+use strict;
+use warnings;
+
+print "CPU: \n";
diff --git a/testcases/024-cpu-usage-invalid-cpu/i3status.conf b/testcases/024-cpu-usage-invalid-cpu/i3status.conf
new file mode 100644
index 0000000..d32784f
--- /dev/null
+++ b/testcases/024-cpu-usage-invalid-cpu/i3status.conf
@@ -0,0 +1,9 @@
+general {
+ output_format = "none"
+}
+
+order += "cpu_usage"
+
+cpu_usage {
+ format = "CPU: %cpu"
+}