Преглед изворни кода

Enable unit test building on Windows CI

Panagiotis Christopoulos Charitos пре 5 година
родитељ
комит
783303d951
2 измењених фајлова са 10 додато и 10 уклоњено
  1. 2 2
      .travis.yml
  2. 8 8
      tests/util/Process.cpp

+ 2 - 2
.travis.yml

@@ -28,8 +28,8 @@ matrix:
         - unzip VulkanSDKLib.zip -d vulkansdk
         - export VULKAN_SDK=$TRAVIS_BUILD_DIR/vulkansdk
       env:
-        - GENERATOR="Visual Studio 15 2017 Win64" BUILD_TYPE=Debug EXTRA_CHECKS=ON TRACE=ON TOOLS=OFF TESTS=OFF
-        - GENERATOR="Visual Studio 15 2017 Win64" BUILD_TYPE=Release EXTRA_CHECKS=OFF TRACE=OFF TOOLS=OFF TESTS=OFF
+        - GENERATOR="Visual Studio 15 2017 Win64" BUILD_TYPE=Debug EXTRA_CHECKS=ON TRACE=ON TOOLS=ON TESTS=ON
+        - GENERATOR="Visual Studio 15 2017 Win64" BUILD_TYPE=Release EXTRA_CHECKS=OFF TRACE=OFF TOOLS=ON TESTS=ON
     - os: linux
       dist: xenial
       compiler: gcc

+ 8 - 8
tests/util/Process.cpp

@@ -19,12 +19,12 @@ ANKI_TEST(Util, Process)
 		HighRezTimer::sleep(1.0);
 
 		HeapAllocator<U8> alloc(allocAligned, nullptr);
-		StringAuto stdout(alloc);
-		ANKI_TEST_EXPECT_NO_ERR(proc.readFromStdout(stdout));
-		ANKI_TEST_LOGI(stdout.cstr());
+		StringAuto stdOut(alloc);
+		ANKI_TEST_EXPECT_NO_ERR(proc.readFromStdout(stdOut));
+		ANKI_TEST_LOGI(stdOut.cstr());
 	}
 
-	// Stderr and stdout
+	// Stderr and stdOut
 	if(1)
 	{
 		File file;
@@ -54,11 +54,11 @@ done
 			}
 
 			HeapAllocator<U8> alloc(allocAligned, nullptr);
-			StringAuto stdout(alloc);
-			ANKI_TEST_EXPECT_NO_ERR(proc.readFromStdout(stdout));
-			if(stdout.getLength())
+			StringAuto stdOut(alloc);
+			ANKI_TEST_EXPECT_NO_ERR(proc.readFromStdout(stdOut));
+			if(stdOut.getLength())
 			{
-				ANKI_TEST_LOGI(stdout.cstr());
+				ANKI_TEST_LOGI(stdOut.cstr());
 			}
 
 			StringAuto stderrStr(alloc);