File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -540,19 +540,17 @@ function(gfortran_add_execute_test expect_error main others fflags ldflags)
540
540
get_filename_component (working_dir_name "${working_dir} " NAME )
541
541
542
542
llvm_test_executable_no_test (${target} ${main} ${others} )
543
- llvm_test_run (WORKDIR "%S/${working_dir_name} " )
544
- # FIXME: All we need is to negate the exit code. LLVM's not utility can do
545
- # this, but if it is not already installed on the system, it will have to be
546
- # obtained from LLVM's build directory. It is not clear that we can rely on
547
- # this when running the test suite.
543
+
548
544
if (WIN32 )
549
545
# Probably need to check %errorlevel% here.
550
546
message (FATAL_ERROR "Verification not implemented on Windows." )
551
547
else ()
552
548
if (expect_error )
553
- llvm_test_verify (${TESTCMD} $? -ne 0 )
549
+ llvm_test_run (
550
+ EXECUTABLE "%b/not --crash ${target} "
551
+ WORKDIR "%S/${working_dir_name} " )
554
552
else ()
555
- llvm_test_verify ( ${TESTCMD} $? -eq 0 )
553
+ llvm_test_run ( WORKDIR "%S/ ${working_dir_name} " )
556
554
endif ()
557
555
endif ()
558
556
llvm_add_test_for_target (${target} )
You can’t perform that action at this time.
0 commit comments