From 03cee3fee01dfd3fc1cf3256f3e01ba0387aa25f Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Wed, 29 Apr 2020 16:44:50 +0200 Subject: [PATCH] builder: fix run & is_test check --- vlib/v/builder/compile.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/v/builder/compile.v b/vlib/v/builder/compile.v index dbde2d91d8..e620d2195d 100644 --- a/vlib/v/builder/compile.v +++ b/vlib/v/builder/compile.v @@ -167,7 +167,7 @@ pub fn (v Builder) get_user_files() []string { user_files << os.join_path(preludes_path, 'profiled_program.v') } is_test := dir.ends_with('_test.v') - if v.pref.is_run { + if v.pref.is_run && is_test { println('use `v x_test.v` instead of `v run x_test.v`') exit(1) }