diff --git a/src/tests.rs b/src/tests.rs index 8d6f42f..1ebe6ed 100644 --- a/src/tests.rs +++ b/src/tests.rs @@ -112,10 +112,10 @@ fn test_windows() { let mut fixer = Fixer::new(JsonMode::Yes, None); - // Test various addresses using `example-windows`, which redirects to + // Test various addresses using `example-windows.exe`, which redirects to // `example-windows.pdb`. let mut func = |name, addr, linenum| { - let line = format!("#00: ???[tests/example-windows +0x{:x}]", addr); + let line = format!("#00: ???[tests/example-windows.exe +0x{:x}]", addr); let line = fixer.fix(line); assert_eq!( line, diff --git a/tests/README.md b/tests/README.md index c754ee6..0342278 100644 --- a/tests/README.md +++ b/tests/README.md @@ -35,12 +35,12 @@ clang -g example.c -o example-linux ### Windows -`example-windows` and `example-windows.pdb` were produced on a Windows 10 laptop - by clang 9.0 with this command: +`example-windows.exe` and `example-windows.pdb` were produced on a Windows 10 + laptop by clang 9.0 with this command: ``` -clang -g example.c -o example-windows +clang -g example.c -o example-windows.exe ``` -`example-windows` was then hex-edited to change the PDB reference from the +`example-windows.exe` was then hex-edited to change the PDB reference from the absolute path `c:\Users\njn\moz\fix-stacks\tests\example-windows.pdb` to the relative path `tests/////////////////////////////example-windows.pdb`. (The use of many redundant forward slashes is a hack to keep the path the same length, diff --git a/tests/example-windows b/tests/example-windows.exe similarity index 100% rename from tests/example-windows rename to tests/example-windows.exe