Skip to content

Commit 8a40d2a

Browse files
committed
fix: enable 3 more Windows E2E tests
- xlings.cppm: fix >/dev/null → >/dev/null in config_set_mirror on Windows - 02_new_build_run: remove fresh-sandbox tag (uses global MCPP_HOME) - 38_self_config_mirror: remove unix-shell tag (portable after >/dev/null fix) With scan-deps now in xlings LLVM Windows package, test 16 should also auto-enable via capability detection.
1 parent 0e79f3c commit 8a40d2a

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

src/xlings.cppm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,11 @@ int config_set_mirror(const Env& env, std::string_view mirror, bool quiet) {
781781
"{} config --mirror {} {}",
782782
build_command_prefix(env),
783783
shq(mirror),
784+
#if defined(_WIN32)
785+
quiet ? ">nul 2>&1" : "");
786+
#else
784787
quiet ? ">/dev/null 2>&1" : "");
788+
#endif
785789
return std::system(cmd.c_str());
786790
}
787791

tests/e2e/02_new_build_run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env bash
2-
# requires: fresh-sandbox
2+
# requires:
33
# Single-module hello world: mcpp new → build → run
44
set -e
55

tests/e2e/38_self_config_mirror.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env bash
2-
# requires: unix-shell
2+
# requires:
33
# 38_self_config_mirror.sh — configure xlings mirror through mcpp self config.
44
set -e
55

0 commit comments

Comments
 (0)