From dedcb6455c498e96456c076b0f58b5399a845bf1 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 29 Jun 2015 22:20:29 +0200 Subject: [PATCH] build system: fix unit test executable names for Windows Fixes #1318. --- rake.d/gtest.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rake.d/gtest.rb b/rake.d/gtest.rb index 63192178f..e36687e13 100755 --- a/rake.d/gtest.rb +++ b/rake.d/gtest.rb @@ -5,11 +5,11 @@ $gtest_internal = c(:GTEST_TYPE) == "internal" namespace :tests do desc "Build the unit tests" - task :unit => $gtest_apps.collect { |app| "tests/unit/#{app}/#{app}" } + task :unit => $gtest_apps.collect { |app| "tests/unit/#{app}/#{app}" + c(:EXEEXT) } desc "Build and run the unit tests" task :run_unit => 'tests:unit' do - $gtest_apps.each { |app| run "./tests/unit/#{app}/#{app}" + c(:EXEEXT) } + $gtest_apps.each { |app| run "./tests/unit/#{app}/#{app}" } end end