Merge tag 'devprop-5.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael...
[linux-2.6-microblaze.git] / lib / test_printf.c
index ec0d597..8ac71ae 100644 (file)
@@ -528,6 +528,11 @@ time_and_date(void)
        test("0119-00-04T15:32:23", "%ptTr", &t);
        test("15:32:23|2019-01-04", "%ptTt|%ptTd", &t, &t);
        test("15:32:23|0119-00-04", "%ptTtr|%ptTdr", &t, &t);
+
+       test("2019-01-04 15:32:23", "%ptTs", &t);
+       test("0119-00-04 15:32:23", "%ptTsr", &t);
+       test("15:32:23|2019-01-04", "%ptTts|%ptTds", &t, &t);
+       test("15:32:23|0119-00-04", "%ptTtrs|%ptTdrs", &t, &t);
 }
 
 static void __init