 			unlinkBindingGyp()
 
 			execGruntTask 'configure', (err, stdout) ->
-				if stdout.indexOf('Warning: `gyp` failed with exit code: 1') < 0
-					return done(new Error 'expected node-gyp’s error to be in stdout')
+				assert.include(
+					stdout
+					'Warning: `gyp` failed with exit code: 1'
+					'expected node-gyp’s error to be in stdout'
+				)
 
 				done()
 

			execGruntTask 'archArm', (err) ->
				return done(err) if err

				configGypi = fs.readFileSync path.join(supportDir, 'build', 'config.gypi'), 'utf8'
				if configGypi.indexOf('"target_arch": "arm"') < 0
					return done(new Error 'expected config.gypi to be configured for ARM build')

				done()


			execGruntTask 'configureDebug', (err) ->
				return done(err) if err

				assert.include(
					fs.readFileSync(path.join(supportDir, 'build', 'config.gypi'), 'utf8')
					'"default_configuration": "Debug"'
					'expected config.gypi to be configured for debug build'
				)

				done()

