Make the test app not hang

We want an app that keeps running for some of the
library tests, but other tests expect it to return
right away. Make this opt-in.
This commit is contained in:
Matthias Clasen
2018-10-09 21:12:05 -04:00
committed by Alexander Larsson
parent d4df921940
commit c8db26cc35
2 changed files with 2 additions and 2 deletions

View File

@@ -36,7 +36,7 @@ mkdir -p ${DIR}/files/bin
cat > ${DIR}/files/bin/hello.sh <<EOF
#!/bin/sh
echo "Hello world, from a sandbox$EXTRA"
if [ "$EXTRA" = "UPDATED" ]; then
if [ "$EXTRA" = "SPIN" ]; then
exec sh
fi
EOF

View File

@@ -1189,7 +1189,7 @@ static void
update_test_app (void)
{
g_autofree char *arg0 = NULL;
char *argv[] = { NULL, "repos/test", "", "", "UPDATED", NULL };
char *argv[] = { NULL, "repos/test", "", "", "SPIN", NULL };
arg0 = g_test_build_filename (G_TEST_DIST, "make-test-app.sh", NULL);
argv[0] = arg0;