@@ -2464,14 +2464,6 @@ for host in "${ALL_HOSTS[@]}"; do
2464
2464
cmake_cache=" Apple-lldb-Linux.cmake"
2465
2465
fi
2466
2466
2467
- # Watchpoint testing is currently disabled: see rdar://38566150.
2468
- LLDB_TEST_CATEGORIES=" --skip-category=watchpoint"
2469
-
2470
- # Skip DWO to speed up swift testing.
2471
- if [[ " $( true_false ${LLDB_TEST_SWIFT_ONLY} ) " == " TRUE" ]]; then
2472
- LLDB_TEST_CATEGORIES=" ${LLDB_TEST_CATEGORIES} --skip-category=dwo"
2473
- fi
2474
-
2475
2467
# Options to find the just-built libddispatch and Foundation.
2476
2468
if [[ " $( uname -s) " == " Darwin" || " ${SKIP_BUILD_FOUNDATION} " ]] ; then
2477
2469
DOTEST_EXTRA=" "
@@ -2491,11 +2483,21 @@ for host in "${ALL_HOSTS[@]}"; do
2491
2483
DOTEST_EXTRA=" ${DOTEST_EXTRA} -Xlinker -rpath -Xlinker ${FOUNDATION_BUILD_DIR} "
2492
2484
fi
2493
2485
2494
- # Construct dotest arguments.
2495
- DOTEST_ARGS=" --build-dir ${lldb_build_dir} /lldb-test-build.noindex \
2496
- ${LLDB_TEST_CATEGORIES} \
2497
- -t \
2498
- -E \" ${DOTEST_EXTRA} \" "
2486
+ # Watchpoint testing is currently disabled: see rdar://38566150.
2487
+ LLDB_TEST_CATEGORIES=" --skip-category=watchpoint"
2488
+
2489
+ # Skip DWO to speed up swift testing.
2490
+ if [[ " $( true_false ${LLDB_TEST_SWIFT_ONLY} ) " == " TRUE" ]]; then
2491
+ LLDB_TEST_CATEGORIES=" ${LLDB_TEST_CATEGORIES} ;--skip-category=dwo"
2492
+ fi
2493
+
2494
+ # Construct dotest arguments. We use semicolons so CMake interprets this as a list.
2495
+ DOTEST_ARGS=" --build-dir;${lldb_build_dir} /lldb-test-build.noindex;${LLDB_TEST_CATEGORIES} ;-t"
2496
+
2497
+ # Only set the extra arguments if they're not empty.
2498
+ if [[ -z " ${results_targets[@]} " ]]; then
2499
+ DOTEST_ARGS=" ${DOTEST_ARGS} ;-E;\" ${DOTEST_EXTRA} \" "
2500
+ fi
2499
2501
2500
2502
cmake_options=(
2501
2503
" ${cmake_options[@]} "
0 commit comments