mirror of
https://github.com/Llewellynvdm/conky.git
synced 2025-01-27 09:08:25 +00:00
Remove unused variable
Was failing Test because warnings were being treated as errors.
This commit is contained in:
parent
7c074f5237
commit
0ca4a26d3b
@ -153,22 +153,22 @@ TEST_CASE("cpu_percentage and cpu_barval return correct values") {
|
|||||||
obj0.data.i = 0;
|
obj0.data.i = 0;
|
||||||
struct text_object obj1;
|
struct text_object obj1;
|
||||||
obj1.data.i = 1;
|
obj1.data.i = 1;
|
||||||
struct text_object obj2;
|
// struct text_object obj2;
|
||||||
obj2.data.i = 2;
|
// obj2.data.i = 2;
|
||||||
info.cpu_count = 1;
|
info.cpu_count = 1;
|
||||||
|
|
||||||
SECTION("for non-existent cpu") {
|
// SECTION("for non-existent cpu") {
|
||||||
info.cpu_usage = new float[2];
|
// info.cpu_usage = new float[2];
|
||||||
info.cpu_usage[0] = 0.253;
|
// info.cpu_usage[0] = 0.253;
|
||||||
info.cpu_usage[1] = 0.507;
|
// info.cpu_usage[1] = 0.507;
|
||||||
|
|
||||||
// This does not exist in Catch2, but would be nice to have since that's
|
// This does not exist in Catch2, but would be nice to have since that's
|
||||||
// what happens in this case.
|
// what happens in this case.
|
||||||
// REQUIRE_EXIT(cpu_percentage(&obj2));
|
// REQUIRE_EXIT(cpu_percentage(&obj2));
|
||||||
// REQUIRE_EXIT(cpu_barval(&obj2));
|
// REQUIRE_EXIT(cpu_barval(&obj2));
|
||||||
|
|
||||||
delete[] info.cpu_usage;
|
// delete[] info.cpu_usage;
|
||||||
}
|
// }
|
||||||
|
|
||||||
SECTION("for cpu_usage == nullptr") {
|
SECTION("for cpu_usage == nullptr") {
|
||||||
info.cpu_usage = nullptr;
|
info.cpu_usage = nullptr;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user