From ecdd4d820296162c273c3344f844cf78af0e4426 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Mon, 31 Mar 2025 04:41:08 +0900 Subject: fortify: clean ps output This format never changed ever since it was added. It used to show everything there is in a process state but that is no longer true for a long time. This change cleans it up in favour of `fortify show` displaying extra information. Signed-off-by: Ophestra --- print_test.go | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'print_test.go') diff --git a/print_test.go b/print_test.go index addeb604..d892e55f 100644 --- a/print_test.go +++ b/print_test.go @@ -458,20 +458,16 @@ func Test_printPs(t *testing.T) { short, json bool want string }{ - {"no entries", make(state.Entries), false, false, ` Instance PID App Uptime Enablements Command - + {"no entries", make(state.Entries), false, false, ` Instance PID Application Uptime `}, {"no entries short", make(state.Entries), true, false, ``}, - {"nil instance", state.Entries{testID: nil}, false, false, ` Instance PID App Uptime Enablements Command - + {"nil instance", state.Entries{testID: nil}, false, false, ` Instance PID Application Uptime `}, - {"state corruption", state.Entries{fst.ID{}: testState}, false, false, ` Instance PID App Uptime Enablements Command - + {"state corruption", state.Entries{fst.ID{}: testState}, false, false, ` Instance PID Application Uptime `}, - {"valid", state.Entries{testID: testState}, false, false, ` Instance PID App Uptime Enablements Command - 8e2c76b0 3735928559 9 1h2m32s wayland, dbus, pulseaudio ["chromium" "--ignore-gpu-blocklist" "--disable-smooth-scrolling" "--enable-features=UseOzonePlatform" "--ozone-platform=wayland"] - + {"valid", state.Entries{testID: testState}, false, false, ` Instance PID Application Uptime + 8e2c76b0 3735928559 9 (org.chromium.Chromium) 1h2m32s `}, {"valid short", state.Entries{testID: testState}, true, false, `8e2c76b0 `}, -- cgit v1.3.1