Skip to content

Fix comparison float and int values #1570

Fix comparison float and int values

Fix comparison float and int values #1570

Triggered via pull request October 30, 2024 10:09
Status Failure
Total duration 5m 53s
Artifacts

run-build-and-unit-tests.yml

on: pull_request
Matrix: main
Fit to window
Zoom out
Zoom in

Annotations

26 errors and 39 warnings
main (macos-latest)
[xUnit.net 00:00:14.23] Cesium.IntegrationTests.IntegrationTestRunner.TestNet(relativeSourcePath: "stdlib/io/fgets.c") [FAIL]
main (macos-latest)
[xUnit.net 00:00:17.97] Cesium.IntegrationTests.IntegrationTestRunner.TestNet(relativeSourcePath: "stdlib/string/byte/strchr.c") [FAIL]
main (macos-latest)
[xUnit.net 00:00:26.65] Cesium.IntegrationTests.IntegrationTestRunner.TestNet(relativeSourcePath: "enum.c") [FAIL]
main (macos-latest)
[xUnit.net 00:00:31.45] Cesium.IntegrationTests.IntegrationTestRunner.TestNet(relativeSourcePath: "stdlib/string/byte/strtoul.c") [FAIL]
main (macos-latest)
[xUnit.net 00:00:33.16] Cesium.IntegrationTests.IntegrationTestRunner.TestNet(relativeSourcePath: "stdlib/program/getenv.c") [FAIL]
main (macos-latest)
[xUnit.net 00:00:35.82] Cesium.IntegrationTests.IntegrationTestRunner.TestNet(relativeSourcePath: "stdlib/string/byte/strtol.c") [FAIL]
main (macos-latest)
Target "TestIntegration" has thrown an exception
main (macos-latest)
Process completed with exit code 255.
main (ubuntu-latest)
[xUnit.net 00:00:19.93] Cesium.IntegrationTests.IntegrationTestRunner.TestNet(relativeSourcePath: "stdlib/io/fgets.c") [FAIL]
main (ubuntu-latest)
[xUnit.net 00:00:24.10] Cesium.IntegrationTests.IntegrationTestRunner.TestNet(relativeSourcePath: "stdlib/string/byte/strchr.c") [FAIL]
main (ubuntu-latest)
[xUnit.net 00:00:36.02] Cesium.IntegrationTests.IntegrationTestRunner.TestNet(relativeSourcePath: "enum.c") [FAIL]
main (ubuntu-latest)
[xUnit.net 00:00:43.76] Cesium.IntegrationTests.IntegrationTestRunner.TestNet(relativeSourcePath: "stdlib/string/byte/strtoul.c") [FAIL]
main (ubuntu-latest)
[xUnit.net 00:00:47.44] Cesium.IntegrationTests.IntegrationTestRunner.TestNet(relativeSourcePath: "stdlib/program/getenv.c") [FAIL]
main (ubuntu-latest)
[xUnit.net 00:00:50.75] Cesium.IntegrationTests.IntegrationTestRunner.TestNet(relativeSourcePath: "stdlib/string/byte/strtol.c") [FAIL]
main (ubuntu-latest)
Target "TestIntegration" has thrown an exception
main (ubuntu-latest)
Process completed with exit code 255.
main (windows-latest)
[xUnit.net 00:00:17.79] Cesium.IntegrationTests.IntegrationTestRunner.TestNet(relativeSourcePath: "stdlib\\string\\byte\\strchr.c") [FAIL]
main (windows-latest)
[xUnit.net 00:00:36.20] Cesium.IntegrationTests.IntegrationTestRunner.TestNetFramework(relativeSourcePath: "stdlib\\program\\getenv.c") [FAIL]
main (windows-latest)
[xUnit.net 00:00:47.00] Cesium.IntegrationTests.IntegrationTestRunner.TestNet(relativeSourcePath: "enum.c") [FAIL]
main (windows-latest)
[xUnit.net 00:00:51.20] Cesium.IntegrationTests.IntegrationTestRunner.TestNetFramework(relativeSourcePath: "enum.c") [FAIL]
main (windows-latest)
[xUnit.net 00:00:56.52] Cesium.IntegrationTests.IntegrationTestRunner.TestNet(relativeSourcePath: "stdlib\\string\\byte\\strtol.c") [FAIL]
main (windows-latest)
[xUnit.net 00:01:02.16] Cesium.IntegrationTests.IntegrationTestRunner.TestNet(relativeSourcePath: "stdlib\\program\\getenv.c") [FAIL]
main (windows-latest)
[xUnit.net 00:01:10.92] Cesium.IntegrationTests.IntegrationTestRunner.TestNet(relativeSourcePath: "stdlib\\string\\byte\\strtoul.c") [FAIL]
main (windows-latest)
[xUnit.net 00:01:13.37] Cesium.IntegrationTests.IntegrationTestRunner.TestNet(relativeSourcePath: "stdlib\\io\\fgets.c") [FAIL]
main (windows-latest)
[xUnit.net 00:01:19.04] Cesium.IntegrationTests.IntegrationTestRunner.TestNetFramework(relativeSourcePath: "stdlib\\string\\byte\\strtol.c") [FAIL]
main (windows-latest)
[xUnit.net 00:01:29.25] Cesium.IntegrationTests.IntegrationTestRunner.TestNetFramework(relativeSourcePath: "stdlib\\string\\byte\\strchr.c") [FAIL]
main (macos-latest)
/Users/runner/work/Cesium/Cesium/Cesium.Compiler/IndentedTextWriter.cs(357,26): warning CS3021: 'IndentedTextWriter.WriteLine(uint)' does not need a CLSCompliant attribute because the assembly does not have a CLSCompliant attribute [/Users/runner/work/Cesium/Cesium/Cesium.Compiler/Cesium.Compiler.csproj]
main (macos-latest)
/Users/runner/work/Cesium/Cesium/Cesium.Compiler/IndentedTextWriter.cs(357,26): warning CS3021: 'IndentedTextWriter.WriteLine(uint)' does not need a CLSCompliant attribute because the assembly does not have a CLSCompliant attribute [/Users/runner/work/Cesium/Cesium/Cesium.Compiler/Cesium.Compiler.csproj]
main (macos-latest)
/Users/runner/.dotnet/sdk/8.0.403/Sdks/NuGet.Build.Tasks.Pack/build/NuGet.Build.Tasks.Pack.targets(221,5): warning NU5104: A stable release of a package should not have a prerelease dependency. Either modify the version spec of dependency "Yoakke.SynKit.C.Syntax [2024.1.6-15.18.30-nightly, )" or update the version field in the nuspec. [/Users/runner/work/Cesium/Cesium/Cesium.Ast/Cesium.Ast.csproj]
main (macos-latest)
/Users/runner/.dotnet/sdk/8.0.403/Sdks/NuGet.Build.Tasks.Pack/build/NuGet.Build.Tasks.Pack.targets(221,5): warning NU5104: A stable release of a package should not have a prerelease dependency. Either modify the version spec of dependency "Yoakke.SynKit.Lexer [2024.1.6-15.18.30-nightly, )" or update the version field in the nuspec. [/Users/runner/work/Cesium/Cesium/Cesium.Ast/Cesium.Ast.csproj]
main (macos-latest)
/Users/runner/work/Cesium/Cesium/Cesium.CodeGen/Ir/Types/StructType.cs(15,28): warning CS0169: The field 'StructType.AnonType' is never used [/Users/runner/work/Cesium/Cesium/Cesium.CodeGen/Cesium.CodeGen.csproj]
main (macos-latest)
/Users/runner/work/Cesium/Cesium/Cesium.Compiler/IndentedTextWriter.cs(357,26): warning CS3021: 'IndentedTextWriter.WriteLine(uint)' does not need a CLSCompliant attribute because the assembly does not have a CLSCompliant attribute [/Users/runner/work/Cesium/Cesium/Cesium.Compiler/Cesium.Compiler.csproj]
main (macos-latest)
/Users/runner/work/Cesium/Cesium/Cesium.Compiler.Tests/CommandLineParsingTest.cs(127,13): warning xUnit2029: Do not use Assert.Empty to check if a value does not exist in a collection. Use Assert.DoesNotContain instead. (https://xunit.net/xunit.analyzers/rules/xUnit2029) [/Users/runner/work/Cesium/Cesium/Cesium.Compiler.Tests/Cesium.Compiler.Tests.csproj]
main (macos-latest)
/Users/runner/.dotnet/sdk/8.0.403/Sdks/NuGet.Build.Tasks.Pack/build/NuGet.Build.Tasks.Pack.targets(221,5): warning NU5104: A stable release of a package should not have a prerelease dependency. Either modify the version spec of dependency "Yoakke.SynKit.C.Syntax [2024.1.6-15.18.30-nightly, )" or update the version field in the nuspec. [/Users/runner/work/Cesium/Cesium/Cesium.Ast/Cesium.Ast.csproj]
main (macos-latest)
/Users/runner/.dotnet/sdk/8.0.403/Sdks/NuGet.Build.Tasks.Pack/build/NuGet.Build.Tasks.Pack.targets(221,5): warning NU5104: A stable release of a package should not have a prerelease dependency. Either modify the version spec of dependency "Yoakke.SynKit.Lexer [2024.1.6-15.18.30-nightly, )" or update the version field in the nuspec. [/Users/runner/work/Cesium/Cesium/Cesium.Ast/Cesium.Ast.csproj]
main (macos-latest)
/Users/runner/work/Cesium/Cesium/Cesium.CodeGen/Ir/Types/StructType.cs(15,28): warning CS0169: The field 'StructType.AnonType' is never used [/Users/runner/work/Cesium/Cesium/Cesium.CodeGen/Cesium.CodeGen.csproj]
main (macos-latest)
/Users/runner/work/Cesium/Cesium/Cesium.Compiler/IndentedTextWriter.cs(357,26): warning CS3021: 'IndentedTextWriter.WriteLine(uint)' does not need a CLSCompliant attribute because the assembly does not have a CLSCompliant attribute [/Users/runner/work/Cesium/Cesium/Cesium.Compiler/Cesium.Compiler.csproj]
main (macos-latest)
/Users/runner/work/Cesium/Cesium/Cesium.Compiler.Tests/CommandLineParsingTest.cs(127,13): warning xUnit2029: Do not use Assert.Empty to check if a value does not exist in a collection. Use Assert.DoesNotContain instead. (https://xunit.net/xunit.analyzers/rules/xUnit2029) [/Users/runner/work/Cesium/Cesium/Cesium.Compiler.Tests/Cesium.Compiler.Tests.csproj]
main (macos-latest)
/Users/runner/work/Cesium/Cesium/Cesium.Compiler/IndentedTextWriter.cs(357,26): warning CS3021: 'IndentedTextWriter.WriteLine(uint)' does not need a CLSCompliant attribute because the assembly does not have a CLSCompliant attribute [/Users/runner/work/Cesium/Cesium/Cesium.Compiler/Cesium.Compiler.csproj]
main (ubuntu-latest)
/home/runner/work/Cesium/Cesium/Cesium.Compiler/IndentedTextWriter.cs(357,26): warning CS3021: 'IndentedTextWriter.WriteLine(uint)' does not need a CLSCompliant attribute because the assembly does not have a CLSCompliant attribute [/home/runner/work/Cesium/Cesium/Cesium.Compiler/Cesium.Compiler.csproj]
main (ubuntu-latest)
/home/runner/work/Cesium/Cesium/Cesium.Compiler/IndentedTextWriter.cs(357,26): warning CS3021: 'IndentedTextWriter.WriteLine(uint)' does not need a CLSCompliant attribute because the assembly does not have a CLSCompliant attribute [/home/runner/work/Cesium/Cesium/Cesium.Compiler/Cesium.Compiler.csproj]
main (ubuntu-latest)
/usr/share/dotnet/sdk/8.0.403/Sdks/NuGet.Build.Tasks.Pack/build/NuGet.Build.Tasks.Pack.targets(221,5): warning NU5104: A stable release of a package should not have a prerelease dependency. Either modify the version spec of dependency "Yoakke.SynKit.C.Syntax [2024.1.6-15.18.30-nightly, )" or update the version field in the nuspec. [/home/runner/work/Cesium/Cesium/Cesium.Ast/Cesium.Ast.csproj]
main (ubuntu-latest)
/usr/share/dotnet/sdk/8.0.403/Sdks/NuGet.Build.Tasks.Pack/build/NuGet.Build.Tasks.Pack.targets(221,5): warning NU5104: A stable release of a package should not have a prerelease dependency. Either modify the version spec of dependency "Yoakke.SynKit.Lexer [2024.1.6-15.18.30-nightly, )" or update the version field in the nuspec. [/home/runner/work/Cesium/Cesium/Cesium.Ast/Cesium.Ast.csproj]
main (ubuntu-latest)
/home/runner/work/Cesium/Cesium/Cesium.CodeGen/Ir/Types/StructType.cs(15,28): warning CS0169: The field 'StructType.AnonType' is never used [/home/runner/work/Cesium/Cesium/Cesium.CodeGen/Cesium.CodeGen.csproj]
main (ubuntu-latest)
/home/runner/work/Cesium/Cesium/Cesium.Compiler/IndentedTextWriter.cs(357,26): warning CS3021: 'IndentedTextWriter.WriteLine(uint)' does not need a CLSCompliant attribute because the assembly does not have a CLSCompliant attribute [/home/runner/work/Cesium/Cesium/Cesium.Compiler/Cesium.Compiler.csproj]
main (ubuntu-latest)
/home/runner/work/Cesium/Cesium/Cesium.Compiler.Tests/CommandLineParsingTest.cs(127,13): warning xUnit2029: Do not use Assert.Empty to check if a value does not exist in a collection. Use Assert.DoesNotContain instead. (https://xunit.net/xunit.analyzers/rules/xUnit2029) [/home/runner/work/Cesium/Cesium/Cesium.Compiler.Tests/Cesium.Compiler.Tests.csproj]
main (ubuntu-latest)
/usr/share/dotnet/sdk/8.0.403/Sdks/NuGet.Build.Tasks.Pack/build/NuGet.Build.Tasks.Pack.targets(221,5): warning NU5104: A stable release of a package should not have a prerelease dependency. Either modify the version spec of dependency "Yoakke.SynKit.C.Syntax [2024.1.6-15.18.30-nightly, )" or update the version field in the nuspec. [/home/runner/work/Cesium/Cesium/Cesium.Ast/Cesium.Ast.csproj]
main (ubuntu-latest)
/usr/share/dotnet/sdk/8.0.403/Sdks/NuGet.Build.Tasks.Pack/build/NuGet.Build.Tasks.Pack.targets(221,5): warning NU5104: A stable release of a package should not have a prerelease dependency. Either modify the version spec of dependency "Yoakke.SynKit.Lexer [2024.1.6-15.18.30-nightly, )" or update the version field in the nuspec. [/home/runner/work/Cesium/Cesium/Cesium.Ast/Cesium.Ast.csproj]
main (ubuntu-latest)
/home/runner/work/Cesium/Cesium/Cesium.CodeGen/Ir/Types/StructType.cs(15,28): warning CS0169: The field 'StructType.AnonType' is never used [/home/runner/work/Cesium/Cesium/Cesium.CodeGen/Cesium.CodeGen.csproj]
main (ubuntu-latest)
/home/runner/work/Cesium/Cesium/Cesium.Compiler/IndentedTextWriter.cs(357,26): warning CS3021: 'IndentedTextWriter.WriteLine(uint)' does not need a CLSCompliant attribute because the assembly does not have a CLSCompliant attribute [/home/runner/work/Cesium/Cesium/Cesium.Compiler/Cesium.Compiler.csproj]
main (ubuntu-latest)
/home/runner/work/Cesium/Cesium/Cesium.Compiler.Tests/CommandLineParsingTest.cs(127,13): warning xUnit2029: Do not use Assert.Empty to check if a value does not exist in a collection. Use Assert.DoesNotContain instead. (https://xunit.net/xunit.analyzers/rules/xUnit2029) [/home/runner/work/Cesium/Cesium/Cesium.Compiler.Tests/Cesium.Compiler.Tests.csproj]
main (ubuntu-latest)
/home/runner/work/Cesium/Cesium/Cesium.Compiler/IndentedTextWriter.cs(357,26): warning CS3021: 'IndentedTextWriter.WriteLine(uint)' does not need a CLSCompliant attribute because the assembly does not have a CLSCompliant attribute [/home/runner/work/Cesium/Cesium/Cesium.Compiler/Cesium.Compiler.csproj]
main (windows-latest)
D:\a\Cesium\Cesium\Cesium.Compiler\IndentedTextWriter.cs(357,26): warning CS3021: 'IndentedTextWriter.WriteLine(uint)' does not need a CLSCompliant attribute because the assembly does not have a CLSCompliant attribute [D:\a\Cesium\Cesium\Cesium.Compiler\Cesium.Compiler.csproj]
main (windows-latest)
D:\a\Cesium\Cesium\Cesium.Compiler\IndentedTextWriter.cs(357,26): warning CS3021: 'IndentedTextWriter.WriteLine(uint)' does not need a CLSCompliant attribute because the assembly does not have a CLSCompliant attribute [D:\a\Cesium\Cesium\Cesium.Compiler\Cesium.Compiler.csproj]
main (windows-latest)
D:\a\Cesium\Cesium\Cesium.Compiler\IndentedTextWriter.cs(357,26): warning CS3021: 'IndentedTextWriter.WriteLine(uint)' does not need a CLSCompliant attribute because the assembly does not have a CLSCompliant attribute [D:\a\Cesium\Cesium\Cesium.Compiler\Cesium.Compiler.csproj]
main (windows-latest)
C:\Program Files\dotnet\sdk\8.0.403\Sdks\NuGet.Build.Tasks.Pack\build\NuGet.Build.Tasks.Pack.targets(221,5): warning NU5104: A stable release of a package should not have a prerelease dependency. Either modify the version spec of dependency "Yoakke.SynKit.C.Syntax [2024.1.6-15.18.30-nightly, )" or update the version field in the nuspec. [D:\a\Cesium\Cesium\Cesium.Ast\Cesium.Ast.csproj]
main (windows-latest)
C:\Program Files\dotnet\sdk\8.0.403\Sdks\NuGet.Build.Tasks.Pack\build\NuGet.Build.Tasks.Pack.targets(221,5): warning NU5104: A stable release of a package should not have a prerelease dependency. Either modify the version spec of dependency "Yoakke.SynKit.Lexer [2024.1.6-15.18.30-nightly, )" or update the version field in the nuspec. [D:\a\Cesium\Cesium\Cesium.Ast\Cesium.Ast.csproj]
main (windows-latest)
D:\a\Cesium\Cesium\Cesium.CodeGen\Ir\Types\StructType.cs(15,28): warning CS0169: The field 'StructType.AnonType' is never used [D:\a\Cesium\Cesium\Cesium.CodeGen\Cesium.CodeGen.csproj]
main (windows-latest)
D:\a\Cesium\Cesium\Cesium.Compiler\IndentedTextWriter.cs(357,26): warning CS3021: 'IndentedTextWriter.WriteLine(uint)' does not need a CLSCompliant attribute because the assembly does not have a CLSCompliant attribute [D:\a\Cesium\Cesium\Cesium.Compiler\Cesium.Compiler.csproj]
main (windows-latest)
D:\a\Cesium\Cesium\Cesium.Compiler.Tests\CommandLineParsingTest.cs(127,13): warning xUnit2029: Do not use Assert.Empty to check if a value does not exist in a collection. Use Assert.DoesNotContain instead. (https://xunit.net/xunit.analyzers/rules/xUnit2029) [D:\a\Cesium\Cesium\Cesium.Compiler.Tests\Cesium.Compiler.Tests.csproj]
main (windows-latest)
C:\Program Files\dotnet\sdk\8.0.403\Sdks\NuGet.Build.Tasks.Pack\build\NuGet.Build.Tasks.Pack.targets(221,5): warning NU5104: A stable release of a package should not have a prerelease dependency. Either modify the version spec of dependency "Yoakke.SynKit.C.Syntax [2024.1.6-15.18.30-nightly, )" or update the version field in the nuspec. [D:\a\Cesium\Cesium\Cesium.Ast\Cesium.Ast.csproj]
main (windows-latest)
C:\Program Files\dotnet\sdk\8.0.403\Sdks\NuGet.Build.Tasks.Pack\build\NuGet.Build.Tasks.Pack.targets(221,5): warning NU5104: A stable release of a package should not have a prerelease dependency. Either modify the version spec of dependency "Yoakke.SynKit.Lexer [2024.1.6-15.18.30-nightly, )" or update the version field in the nuspec. [D:\a\Cesium\Cesium\Cesium.Ast\Cesium.Ast.csproj]
main (windows-latest)
D:\a\Cesium\Cesium\Cesium.CodeGen\Ir\Types\StructType.cs(15,28): warning CS0169: The field 'StructType.AnonType' is never used [D:\a\Cesium\Cesium\Cesium.CodeGen\Cesium.CodeGen.csproj]
main (windows-latest)
D:\a\Cesium\Cesium\Cesium.Compiler\IndentedTextWriter.cs(357,26): warning CS3021: 'IndentedTextWriter.WriteLine(uint)' does not need a CLSCompliant attribute because the assembly does not have a CLSCompliant attribute [D:\a\Cesium\Cesium\Cesium.Compiler\Cesium.Compiler.csproj]
main (windows-latest)
D:\a\Cesium\Cesium\Cesium.Compiler.Tests\CommandLineParsingTest.cs(127,13): warning xUnit2029: Do not use Assert.Empty to check if a value does not exist in a collection. Use Assert.DoesNotContain instead. (https://xunit.net/xunit.analyzers/rules/xUnit2029) [D:\a\Cesium\Cesium\Cesium.Compiler.Tests\Cesium.Compiler.Tests.csproj]