From a5951babfc2687b42c495406a8d2afe31eb84661 Mon Sep 17 00:00:00 2001 From: Geza Lore Date: Sat, 28 Oct 2023 10:36:21 +0100 Subject: [PATCH] test: make output deterministic --- test_regress/t/t_dist_attributes_bad.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/test_regress/t/t_dist_attributes_bad.pl b/test_regress/t/t_dist_attributes_bad.pl index d7c45df75..bd24d66eb 100755 --- a/test_regress/t/t_dist_attributes_bad.pl +++ b/test_regress/t/t_dist_attributes_bad.pl @@ -21,6 +21,7 @@ if ($ENV{VERILATOR_TEST_NO_ATTRIBUTES}) { sub gen_compile_commands_json { my $json = JSON::PP->new->utf8->pretty; + $json->canonical(); # Sort hash keys on ouptut my $root_dir = abs_path(".."); my $srcs_dir = abs_path("./t/t_dist_attributes");