From 912135672f5b776dc876adfb6f43da038e28851c Mon Sep 17 00:00:00 2001 From: Max Howell Date: Fri, 7 Mar 2014 18:17:44 -0600 Subject: [PATCH] Abort if tests fail to compile --- tests | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests b/tests index 75e9dea..323056b 100755 --- a/tests +++ b/tests @@ -535,12 +535,12 @@ File.open('/tmp/YOLOtests.m', 'w') do |f| f.puts(OBJC) end -system <<-EOS +abort unless system <<-EOS clang -g -O0 -ObjC -F#{FRAMEWORKS} -I. -fmodules -fobjc-arc \ -framework SenTestingKit \ /tmp/YOLOtests.m *.m -o /tmp/YOLOtests EOS -system <<-EOS +abort unless system <<-EOS install_name_tool -change \ @rpath/SenTestingKit.framework/Versions/A/SenTestingKit \ #{FRAMEWORKS}/SenTestingKit.framework/SenTestingKit \