]> git.sur5r.net Git - i3/i3status/commitdiff
Add testcase for invalid %cpu placeholder 318/head
authorGaël PORTAY <gael.portay@savoirfairelinux.com>
Tue, 23 Oct 2018 14:58:29 +0000 (10:58 -0400)
committerGaël PORTAY <gael.portay@savoirfairelinux.com>
Tue, 23 Oct 2018 15:16:16 +0000 (11:16 -0400)
testcases/024-cpu-usage-invalid-cpu/expected_output.pl [new file with mode: 0644]
testcases/024-cpu-usage-invalid-cpu/i3status.conf [new file with mode: 0644]

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 (file)
index 0000000..45111a6
--- /dev/null
@@ -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 (file)
index 0000000..d32784f
--- /dev/null
@@ -0,0 +1,9 @@
+general {
+        output_format = "none"
+}
+
+order += "cpu_usage"
+
+cpu_usage {
+    format = "CPU: %cpu"
+}