Skip to content

Commit 72e7f3b

Browse files
committed
Fxi tests
1 parent b14da2a commit 72e7f3b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tests/frontend/lua.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ EOF
198198
}
199199

200200
script_execute_body() {
201-
atf_check -s exit:0 sh ${RESOURCEDIR}/test_subr.sh new_pkg "test" "test" "1" "/"
201+
atf_check -s exit:1 sh ${RESOURCEDIR}/test_subr.sh new_pkg "test" "test" "1" "/"
202202
cat << EOF >> test.ucl
203203
lua_scripts: {
204204
post-install: [ <<EOS
@@ -216,12 +216,12 @@ pkg: lua script failed\n"
216216
atf_check \
217217
-o empty \
218218
-e empty \
219-
-s exit:0 \
219+
-s exit:1 \
220220
pkg create -M test.ucl
221221
mkdir -p ${TMPDIR}/target
222222
atf_check \
223223
-e inline:"${ERR}" \
224-
-s exit:0 \
224+
-s exit:1 \
225225
pkg -o REPOS_DIR=/dev/null -r ${TMPDIR}/target install -qfy ${TMPDIR}/test-1.pkg
226226
}
227227

tests/lib/lua.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ ATF_TC_BODY(override, tc)
301301
}
302302
exit(lua_tonumber(L, -1));
303303
}
304-
atf_utils_wait(p, 0, "[string \"os.execute(\"/usr/bin/true\")\"]:1: os.execute not available\n", "");
304+
atf_utils_wait(p, 1, "[string \"os.execute(\"/usr/bin/true\")\"]:1: os.execute not available\n", "");
305305

306306
p = atf_utils_fork();
307307
if (p == 0) {
@@ -310,7 +310,7 @@ ATF_TC_BODY(override, tc)
310310
}
311311
exit(lua_tonumber(L, -1));
312312
}
313-
atf_utils_wait(p, 0, "[string \"os.exit(1)\"]:1: os.exit not available\n", "");
313+
atf_utils_wait(p, 1, "[string \"os.exit(1)\"]:1: os.exit not available\n", "");
314314

315315
int rootfd = open(getcwd(NULL, 0), O_DIRECTORY);
316316
lua_pushinteger(L, rootfd);

0 commit comments

Comments
 (0)