Re: selftests: Testing a write attempt into a full file?

2017-12-03 Thread walter harms
Am 03.12.2017 21:46, schrieb SF Markus Elfring: > Hello, > > I have constructed another demonstration program. > > > #include > #include > #include > > int main(void) > { > FILE *f = fopen("/dev/full", "a"); > > if (!f) > goto report_failure; > > { >

Re: selftests: Testing a write attempt into a full file?

2017-12-03 Thread walter harms
Am 03.12.2017 21:46, schrieb SF Markus Elfring: > Hello, > > I have constructed another demonstration program. > > > #include > #include > #include > > int main(void) > { > FILE *f = fopen("/dev/full", "a"); > > if (!f) > goto report_failure; > > { >

selftests: Testing a write attempt into a full file?

2017-12-03 Thread SF Markus Elfring
Hello, I have constructed another demonstration program. #include #include #include int main(void) { FILE *f = fopen("/dev/full", "a"); if (!f) goto report_failure; { int const c = 'X'; if (fputc(c, f) != c) goto

selftests: Testing a write attempt into a full file?

2017-12-03 Thread SF Markus Elfring
Hello, I have constructed another demonstration program. #include #include #include int main(void) { FILE *f = fopen("/dev/full", "a"); if (!f) goto report_failure; { int const c = 'X'; if (fputc(c, f) != c) goto