test-annotate.cc: ignore whitespace during diff

Message ID 20220530075501.725826-1-gprocida@google.com
State New
Headers
Series test-annotate.cc: ignore whitespace during diff |

Commit Message

Giuliano Procida May 30, 2022, 7:55 a.m. UTC
  The LLVM C++ demangler is being updated to remove the extra space
delimiter added between consecutive template closings. This change
ensures tests pass with both old and new versions.

	* tests/test-annotate.cc (main): Pass diff -w option.

Suggested-by: Bogdan Graur <bgraur@google.com>
Signed-off-by: Giuliano Procida <gprocida@google.com>
---
 tests/test-annotate.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Dodji Seketeli May 30, 2022, 10:11 a.m. UTC | #1
Giuliano Procida <gprocida@google.com> a écrit:

> The LLVM C++ demangler is being updated to remove the extra space
> delimiter added between consecutive template closings. This change
> ensures tests pass with both old and new versions.
>
> 	* tests/test-annotate.cc (main): Pass diff -w option.
>
> Suggested-by: Bogdan Graur <bgraur@google.com>
> Signed-off-by: Giuliano Procida <gprocida@google.com>

Applied to master, thanks!

[...]

Cheers,
  

Patch

diff --git a/tests/test-annotate.cc b/tests/test-annotate.cc
index 174de483..750f5e88 100644
--- a/tests/test-annotate.cc
+++ b/tests/test-annotate.cc
@@ -173,7 +173,7 @@  main()
       if (abidw_ok)
 	{
 	  string diff_cmd =
-	    "diff -u " + ref_report_path + " " + out_report_path;
+	    "diff -w -u " + ref_report_path + " " + out_report_path;
 	  if (system(diff_cmd.c_str()))
 	    is_ok &=false;
 	}