mirror of
https://github.com/troglobit/libite.git
synced 2026-10-30 12:40:38 +00:00
test: investigate why tempfile() fails on debian:stable
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
bdebca9681
commit
1b6707f44e
1 file changed
+4
@@ -18,8 +18,11 @@ int main(void)
|
|||||||
|
|
||||||
printf("Before tempfile():\n");
|
printf("Before tempfile():\n");
|
||||||
system("ls -lrt " _PATH_TMP " | tail -3");
|
system("ls -lrt " _PATH_TMP " | tail -3");
|
||||||
|
fflush(stdout);
|
||||||
|
|
||||||
fp = tempfile();
|
fp = tempfile();
|
||||||
|
if (fp == NULL)
|
||||||
|
fprintf(stderr, "Failed tempfile(), errno %d: %s", errno, strerror(errno));
|
||||||
fail_unless(fp != NULL);
|
fail_unless(fp != NULL);
|
||||||
|
|
||||||
fputs(READBACK, fp);
|
fputs(READBACK, fp);
|
||||||
@@ -30,6 +33,7 @@ int main(void)
|
|||||||
|
|
||||||
printf("\nAfter tempfile(), should be same list:\n");
|
printf("\nAfter tempfile(), should be same list:\n");
|
||||||
system("ls -lrt " _PATH_TMP " | tail -3");
|
system("ls -lrt " _PATH_TMP " | tail -3");
|
||||||
|
fflush(stdout);
|
||||||
|
|
||||||
return fclose(fp);
|
return fclose(fp);
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user