aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorImre Kis <imre.kis@arm.com>2020-02-14 14:17:58 +0100
committerImre Kis <imre.kis@arm.com>2020-02-17 14:35:09 +0000
commit4b49048ef0f7db2f1c7077bbe4edf5a397437baf (patch)
tree6eabfaa00da1d3563924238ec2cbe24866ecbaa0 /tools
parentc82069c7899e27ed94efa41cce0c53ff33d3848b (diff)
downloadtf-a-tests-4b49048ef0f7db2f1c7077bbe4edf5a397437baf.tar.gz
Fix build with XML::LibXML 2.0202 Perl module
Version 2.0202 of XML::LibXML changes the default behaviour regarding external entities. This results empty tests_list.h and tests_list.c generated by generate_test_list.pl. By enabling explicitly to expand entities the script works correctly. The modified initalization of LibXML is compatible with older versions of the module. Change-Id: Icb951542e70870bddda44d03030eb1fe49689374 Signed-off-by: Imre Kis <imre.kis@arm.com>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/generate_test_list/generate_test_list.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/generate_test_list/generate_test_list.pl b/tools/generate_test_list/generate_test_list.pl
index bcfdaffb..d00d37b7 100755
--- a/tools/generate_test_list/generate_test_list.pl
+++ b/tools/generate_test_list/generate_test_list.pl
@@ -1,7 +1,7 @@
#!/usr/bin/env perl
#
-# Copyright (c) 2018, Arm Limited. All rights reserved.
+# Copyright (c) 2018-2020, Arm Limited. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
@@ -35,7 +35,7 @@ my $testsuite_elem;
my $failure_elem;
if (-e $XML_TEST_FILENAME) {
- my $parser = XML::LibXML->new();
+ my $parser = XML::LibXML->new(expand_entities => 1);
$doc = $parser->parse_file($XML_TEST_FILENAME);
} else {
exit 1