Files
RedBear-OS/tests/time/asctime.c
T
Tibor Nagy 4381bb2a22 tests: Remove redundant return statements
When the execution reaches the end of the main functions, they implicitly return a successful status.
2019-02-20 21:09:03 +01:00

16 lines
324 B
C

#include <time.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(void) {
time_t a = 0;
struct tm *time_info = gmtime(&a);
char *time_string = asctime(time_info);
if (time_string == NULL || strcmp(time_string, "Thu Jan 1 00:00:00 1970\n") != 0) {
return EXIT_FAILURE;
}
}