We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4dbdc28 commit 145ccf8Copy full SHA for 145ccf8
test/CMakeLists.txt
@@ -28,13 +28,10 @@ endforeach()
28
# $1 exec, $2 input, $3 output_result
29
if(WIN32)
30
FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/test_helper.ps1
31
+"[Console]::InputEncoding = New-Object Text.UTF8Encoding $false\n"
32
"if (Test-Path $args[2]) { Remove-Item -Force $args[2] } \n"
33
"$ErrorActionPreference = \"Stop\"\n"
-"If ((Get-Content $args[1] | & file - | %{$_ -match \"BOM\"}) -contains $true) {\n"
34
-"echo 'Skipped due to wrong input encoding'\n"
35
-"exit 0\n"
36
-"}\n"
37
-"Get-Content $args[1] | & $args[0]\n"
+"Get-Content $args[1] | & $args[0]\n"
38
"If ((Get-Content $args[2] | %{$_ -match \"FATAL\"}) -contains $true) {\n"
39
"echo Error\n"
40
"exit 1\n"
0 commit comments