runtime icon indicating copy to clipboard operation
runtime copied to clipboard

System.Xml.Xsl.XslCompiledTransformApi.Tests threw "System.NullReferenceException"

Open jiangzeng opened this issue 10 years ago • 3 comments

No results generated.

Details: https://mc.dot.net/#/product/netcore/master/source/official~2Fcorefx~2Fmaster~2F/type/test~2Ffunctional~2Fcli~2F/build/20161115.01/workItem/System.Xml.Xsl.XslCompiledTransformApi.Tests/details/4944a05a-b748-44ab-b117-f6714bb60568

2016-11-14 19:23:48,940: INFO: proc(65): run_and_log_output: Output:    System.Xml.Tests.CLoadTest.LoadGeneric2() [FAIL]
2016-11-14 19:23:48,941: INFO: proc(65): run_and_log_output: Output:       System.NullReferenceException : Object reference not set to an instance of an object.
2016-11-14 19:23:48,945: INFO: proc(65): run_and_log_output: Output:       Stack Trace:
2016-11-14 19:23:49,054: INFO: proc(65): run_and_log_output: Output:             at System.Xml.Tests.ExceptionVerifier..ctor(String assemblyName, ExceptionVerificationFlags flags, ITestOutputHelper output)
2016-11-14 19:23:49,054: INFO: proc(65): run_and_log_output: Output:             at System.Xml.Tests.CExceptionHandler..ctor(String strXmlFile, String ns, ITestOutputHelper output)
2016-11-14 19:23:49,054: INFO: proc(65): run_and_log_output: Output:             at System.Xml.Tests.XsltApiTestCaseBase2.CheckExpectedError(Exception ex, String assembly, String res, String[] strParams)
2016-11-14 19:23:49,054: INFO: proc(65): run_and_log_output: Output:             at System.Xml.Tests.CLoadTest.LoadGeneric2()

Build : Master - 20161115.01 (Core Tests) Failing configurations: OSX.1011.Amd64:AnyCPU-Debug

jiangzeng avatar Nov 16 '16 02:11 jiangzeng

I encountered the same issue before on some Linux system.

While digging this issue, I found that there are two related issues:

  • There was a bug in the test code (discussed in dotnet/corefx#13669)
  • The current implementation of those tests works only for en_US locale.

I could fix this issue by applying dotnet/corefx#13669 first (then you will encounter the issue discussed in dotnet/corefx#13706), and setting LANG=en_US.UTF-8.

parjong avatar Nov 17 '16 11:11 parjong

Thanks @parjong for the fix.

sepidehkh avatar Nov 17 '16 18:11 sepidehkh

Fixed by https://github.com/dotnet/corefx/pull/13669

sepidehkh avatar Nov 17 '16 19:11 sepidehkh