Skip to content

Commit 32e9cee

Browse files
committed
Tests: Add Symlinkscan generic test
This should be enough to prevent serious regressions that break all output.
1 parent d745a62 commit 32e9cee

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

test/plugins/windows/windows.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -746,6 +746,19 @@ def test_windows_generic_kpcrs(self, volatility, python, image):
746746
assert test_volatility.count_entries_flat(json.loads(out)) > 0
747747

748748

749+
class TestWindowsSymlinkScan:
750+
def test_windows_generic_symlinkscan(self, volatility, python, image):
751+
rc, out, _err = test_volatility.runvol_plugin(
752+
"windows.symlinkscan.SymlinkScan",
753+
image,
754+
volatility,
755+
python,
756+
globalargs=("-r", "json"),
757+
)
758+
assert rc == 0
759+
assert test_volatility.count_entries_flat(json.loads(out)) > 0
760+
761+
749762
class TestWindowsLdrModules:
750763
def test_windows_specific_ldrmodules(self, volatility, python):
751764
image = WindowsSamples.WINDOWSXP_GENERIC.value.path

0 commit comments

Comments
 (0)