Skip to content

Commit

Permalink
Using /unicode when running ildasm.exe roundtrip tests (#71163)
Browse files Browse the repository at this point in the history
* Using /unicode when running ildasm.exe roundtrip tests

* Added /unicode flag

* Update issues.targets
  • Loading branch information
TIHan authored Jul 7, 2022
1 parent a9b18fc commit 82e985c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/tests/Common/CLRTest.Jit.targets
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,16 @@ export RunningIlasmRoundTrip=
]]>
</IlasmRoundTripBashScript>

<IlasmRoundTripBashScript Condition="'$(CLRTestKind)' == 'BuildAndRun'"><![CDATA[
<IlasmRoundTripBashScript Condition="'$(CLRTestKind)' == 'BuildAndRun'">
<![CDATA[
# IlasmRoundTrip Script
# Disable Ilasm round-tripping for Linker tests.
# Todo: Ilasm round-trip on linked binaries.
if [ -z "$DoLink" -a ! -z "$RunningIlasmRoundTrip" ];
then
echo "$CORE_ROOT/ildasm" -raweh -out=$(DisassemblyName) $(InputAssemblyName)
"$CORE_ROOT/ildasm" -raweh -out=$(DisassemblyName) $(InputAssemblyName)
echo "$CORE_ROOT/ildasm" -raweh /unicode -out=$(DisassemblyName) $(InputAssemblyName)
"$CORE_ROOT/ildasm" -raweh /unicode -out=$(DisassemblyName) $(InputAssemblyName)
ERRORLEVEL=$?
if [ $ERRORLEVEL -ne 0 ]
then
Expand Down Expand Up @@ -133,8 +134,8 @@ REM Disable Ilasm round-tripping for Linker tests.
REM Todo: Ilasm round-trip on linked binaries.
IF NOT DEFINED DoLink (
IF DEFINED RunningIlasmRoundTrip (
ECHO %CORE_ROOT%\ildasm.exe /raweh /out=$(DisassemblyName) $(InputAssemblyName)
%CORE_ROOT%\ildasm.exe /raweh /out=$(DisassemblyName) $(InputAssemblyName)
ECHO %CORE_ROOT%\ildasm.exe /raweh /unicode /out=$(DisassemblyName) $(InputAssemblyName)
%CORE_ROOT%\ildasm.exe /raweh /unicode /out=$(DisassemblyName) $(InputAssemblyName)
IF NOT "!ERRORLEVEL!"=="0" (
ECHO EXECUTION OF ILDASM - FAILED !ERRORLEVEL!
Expand Down

0 comments on commit 82e985c

Please sign in to comment.