Fix invocation of ILLink in linux testing
authorSwaroop Sridhar <swaroops@microsoft.com>
Tue, 4 Apr 2017 00:23:11 +0000 (17:23 -0700)
committerSwaroop Sridhar <Swaroop.Sridhar@microsoft.com>
Wed, 5 Apr 2017 01:32:46 +0000 (18:32 -0700)
Fix the input to illink -a argument to not include the extension.
The current command line caused silent wrong code gneration
because of https://github.com/mono/linker/issues/56

tests/src/CLRTest.Execute.Bash.targets

index 62cda2188fededd7d929cd306d18cc1726e0ba2f..f015cc710d4ee488013091b4b4f58ccb405015f4 100644 (file)
@@ -222,7 +222,7 @@ then
   # Include all .exe files in this directory as entry points (some tests had multiple .exe file modules)
   for bin in *.exe *.dll; 
   do 
-    Assemblies="$Assemblies -a $bin"
+    Assemblies="$Assemblies -a ${bin%.*}"
   done
 
   # Run dotnet-linker