Skip to content

Commit ab50dc0

Browse files
committed
test: avoid linking in project index install smokes
1 parent b7e14dd commit ab50dc0

2 files changed

Lines changed: 8 additions & 15 deletions

File tree

tests/e2e/52_local_path_namespaced_index.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,10 @@ EOF
166166
mkdir -p "$TMP/project/clean/src"
167167
cd "$TMP/project/clean"
168168

169-
cat > src/main.cpp <<'EOF'
169+
cat > src/clean.cpp <<'EOF'
170170
extern "C" int cfg_value(void);
171-
int main() {
172-
return cfg_value() == 42 ? 0 : 1;
171+
int clean_value(void) {
172+
return cfg_value();
173173
}
174174
EOF
175175

@@ -185,8 +185,7 @@ compat = { path = "$INDEX_DIR" }
185185
cfg = "1.0.0"
186186
187187
[targets.clean]
188-
kind = "bin"
189-
main = "src/main.cpp"
188+
kind = "lib"
190189
EOF
191190

192191
UPDATE_LOG="$TMP/fake-xlings-update.log"

tests/e2e/58_preinstall_mcpp_deps_for_hooks.sh

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -164,10 +164,10 @@ default_backend = "ninja"
164164
default = "gcc@16.1.0"
165165
EOF
166166

167-
cat > src/main.cpp <<'EOF'
167+
cat > src/app.cpp <<'EOF'
168168
extern "C" int app_value(void);
169-
int main() {
170-
return app_value() == 42 ? 0 : 1;
169+
int app_smoke(void) {
170+
return app_value();
171171
}
172172
EOF
173173

@@ -183,8 +183,7 @@ compat = { path = "$INDEX_DIR" }
183183
appdep = "1.0.0"
184184
185185
[targets.app]
186-
kind = "bin"
187-
main = "src/main.cpp"
186+
kind = "lib"
188187
EOF
189188

190189
if ! FAKE_XLINGS_DIRECT_LOG="$FAKE_DIRECT_LOG" "$MCPP" build > build.log 2>&1; then
@@ -208,9 +207,4 @@ if ! awk '
208207
exit 1
209208
fi
210209

211-
"$MCPP" run > run.log 2>&1 || {
212-
cat run.log
213-
exit 1
214-
}
215-
216210
echo "OK"

0 commit comments

Comments
 (0)