From aa572d24b5ecf16a064f924548ed1926b7b231d6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ga=C3=ABl=20PORTAY?= Date: Tue, 23 Oct 2018 10:58:29 -0400 Subject: [PATCH] Add testcase for invalid %cpu placeholder --- testcases/024-cpu-usage-invalid-cpu/expected_output.pl | 7 +++++++ testcases/024-cpu-usage-invalid-cpu/i3status.conf | 9 +++++++++ 2 files changed, 16 insertions(+) create mode 100644 testcases/024-cpu-usage-invalid-cpu/expected_output.pl create mode 100644 testcases/024-cpu-usage-invalid-cpu/i3status.conf 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" +} -- 2.39.5