Lines Matching refs:DOTEST

837 #define DOTEST(bufsz, result, retval, ...) do { \  macro
863 DOTEST(1024, "hello", 5, "hello"); in main()
864 DOTEST(1024, "h", 1, "h"); in main()
868 DOTEST(3, "he", 5, "hello"); in main()
869 DOTEST(1, "", 7, "%d", 7823089); in main()
872 DOTEST(1024, "0", 1, "%d", 0); in main()
873 DOTEST(1024, "1", 1, "%d", 1); in main()
874 DOTEST(1024, "9", 1, "%d", 9); in main()
875 DOTEST(1024, "15", 2, "%d", 15); in main()
876 DOTEST(1024, "ab15cd", 6, "ab%dcd", 15); in main()
877 DOTEST(1024, "167", 3, "%d", 167); in main()
878 DOTEST(1024, "7823089", 7, "%d", 7823089); in main()
879 DOTEST(1024, " 12", 3, "%3d", 12); in main()
880 DOTEST(1024, "012", 3, "%.3d", 12); in main()
881 DOTEST(1024, "012", 3, "%3.3d", 12); in main()
882 DOTEST(1024, "012", 3, "%03d", 12); in main()
883 DOTEST(1024, " 012", 4, "%4.3d", 12); in main()
884 DOTEST(1024, "", 0, "%.0d", 0); in main()
887 DOTEST(1024, "-1", 2, "%d", -1); in main()
888 DOTEST(1024, "-12", 3, "%3d", -12); in main()
889 DOTEST(1024, " -2", 3, "%3d", -2); in main()
890 DOTEST(1024, "-012", 4, "%.3d", -12); in main()
891 DOTEST(1024, "-012", 4, "%3.3d", -12); in main()
892 DOTEST(1024, "-012", 4, "%4.3d", -12); in main()
893 DOTEST(1024, " -012", 5, "%5.3d", -12); in main()
894 DOTEST(1024, "-12", 3, "%03d", -12); in main()
895 DOTEST(1024, "-02", 3, "%03d", -2); in main()
896 DOTEST(1024, "-15", 3, "%d", -15); in main()
897 DOTEST(1024, "-7307", 5, "%d", -7307); in main()
898 DOTEST(1024, "-12 ", 5, "%-5d", -12); in main()
899 DOTEST(1024, "-00012", 6, "%-.5d", -12); in main()
902 DOTEST(1024, "+12", 3, "%+d", 12); in main()
903 DOTEST(1024, " 12", 3, "% d", 12); in main()
906 DOTEST(1024, "12", 2, "%u", 12); in main()
907 DOTEST(1024, "0", 1, "%u", 0); in main()
908 DOTEST(1024, "4294967295", 10, "%u", 0xffffffff); in main()
911 DOTEST(1024, "0", 1, "%x", 0); in main()
912 DOTEST(1024, "c", 1, "%x", 12); in main()
913 DOTEST(1024, "12ab34cd", 8, "%x", 0x12ab34cd); in main()
916 DOTEST(1024, "18446744073709551615", 20, "%llu", in main()
918 DOTEST(1024, "-9223372036854775808", 20, "%lld", in main()
920 DOTEST(1024, "9223372036854775808", 19, "%llu", in main()
924 DOTEST(1024, "hello", 5, "%s", "hello"); in main()
925 DOTEST(1024, " hello", 10, "%10s", "hello"); in main()
926 DOTEST(1024, "hello ", 10, "%-10s", "hello"); in main()
927 DOTEST(1024, "he", 2, "%.2s", "hello"); in main()
928 DOTEST(1024, " he", 4, "%4.2s", "hello"); in main()
929 DOTEST(1024, " h", 4, "%4.2s", "h"); in main()
932 DOTEST(1024, "a", 1, "%c", 'a'); in main()
938 DOTEST(1024, "hello", 5, "hello%n", &x); in main()
943 DOTEST(1024, "Success", 7, "%m"); in main()
946 DOTEST(1024, "0x10", 4, "%p", (void*)0x10); in main()
947 DOTEST(1024, "(nil)", 5, "%p", (void*)0x0); in main()
950 DOTEST(1024, "%", 1, "%%"); in main()
953 DOTEST(1024, "0.000000", 8, "%f", 0.0); in main()
954 DOTEST(1024, "0.00", 4, "%.2f", 0.0); in main()
956 DOTEST(1024, "234.00", 6, "%.2f", 234.005); in main()
957 DOTEST(1024, "8973497.1246", 12, "%.4f", 8973497.12456); in main()
958 DOTEST(1024, "-12.000000", 10, "%f", -12.0); in main()
959 DOTEST(1024, "6", 1, "%.0f", 6.0); in main()
961 DOTEST(1024, "6", 1, "%g", 6.0); in main()
962 DOTEST(1024, "6.1", 3, "%g", 6.1); in main()
963 DOTEST(1024, "6.15", 4, "%g", 6.15); in main()
967 DOTEST(1024, "abcdef", 6, "%s", "abcdef"); in main()
968 DOTEST(1024, "005", 3, "%03u", 5); in main()
969 DOTEST(1024, "12345", 5, "%03u", 12345); in main()
970 DOTEST(1024, "5", 1, "%d", 5); in main()
971 DOTEST(1024, "(nil)", 5, "%p", NULL); in main()
972 DOTEST(1024, "12345", 5, "%ld", (long)12345); in main()
973 DOTEST(1024, "12345", 5, "%lu", (long)12345); in main()
974 DOTEST(1024, " 12345", 12, "%12u", (unsigned)12345); in main()
975 DOTEST(1024, "12345", 5, "%u", (unsigned)12345); in main()
976 DOTEST(1024, "12345", 5, "%llu", (unsigned long long)12345); in main()
977 DOTEST(1024, "12345", 5, "%x", 0x12345); in main()
978 DOTEST(1024, "12345", 5, "%llx", (long long)0x12345); in main()
979 DOTEST(1024, "012345", 6, "%6.6d", 12345); in main()
980 DOTEST(1024, "012345", 6, "%6.6u", 12345); in main()
981 DOTEST(1024, "1234.54", 7, "%g", 1234.54); in main()
982 DOTEST(1024, "123456789.54", 12, "%.12g", 123456789.54); in main()
983 DOTEST(1024, "3456789123456.54", 16, "%.16g", 3456789123456.54); in main()
986 DOTEST(1024, "12345", 5, "%3.3d", 12345); in main()
987 DOTEST(1024, "000", 3, "%3.3d", 0); in main()
988 DOTEST(1024, "001", 3, "%3.3d", 1); in main()
989 DOTEST(1024, "012", 3, "%3.3d", 12); in main()
990 DOTEST(1024, "-012", 4, "%3.3d", -12); in main()
991 DOTEST(1024, "he", 2, "%.2s", "hello"); in main()
992 DOTEST(1024, "helloworld", 10, "%s%s", "hello", "world"); in main()
993 DOTEST(1024, "he", 2, "%.*s", 2, "hello"); in main()
994 DOTEST(1024, " hello", 7, "%*s", 7, "hello"); in main()
995 DOTEST(1024, "hello ", 7, "%*s", -7, "hello"); in main()
996 DOTEST(1024, "0", 1, "%c", '0'); in main()
997 DOTEST(1024, "A", 1, "%c", 'A'); in main()
998 DOTEST(1024, "", 1, "%c", 0); in main()
999 DOTEST(1024, "\010", 1, "%c", 8); in main()
1000 DOTEST(1024, "%", 1, "%%"); in main()
1001 DOTEST(1024, "0a", 2, "%02x", 0x0a); in main()
1002 DOTEST(1024, "bd", 2, "%02x", 0xbd); in main()
1003 DOTEST(1024, "12", 2, "%02ld", (long)12); in main()
1004 DOTEST(1024, "02", 2, "%02ld", (long)2); in main()
1005 DOTEST(1024, "02", 2, "%02u", (unsigned)2); in main()
1006 DOTEST(1024, "765432", 6, "%05u", (unsigned)765432); in main()
1007 DOTEST(1024, "10.234", 6, "%0.3f", 10.23421); in main()
1008 DOTEST(1024, "123456.234", 10, "%0.3f", 123456.23421); in main()
1009 DOTEST(1024, "123456789.234", 13, "%0.3f", 123456789.23421); in main()
1010 DOTEST(1024, "123456.23", 9, "%.2f", 123456.23421); in main()
1011 DOTEST(1024, "123456", 6, "%.0f", 123456.23421); in main()
1012 DOTEST(1024, "0123", 4, "%.4x", 0x0123); in main()
1013 DOTEST(1024, "00000123", 8, "%.8x", 0x0123); in main()
1014 DOTEST(1024, "ffeb0cde", 8, "%.8x", 0xffeb0cde); in main()
1015 DOTEST(1024, " 987654321", 10, "%10lu", (unsigned long)987654321); in main()
1016 DOTEST(1024, " 987654321", 12, "%12lu", (unsigned long)987654321); in main()
1017 DOTEST(1024, "987654321", 9, "%i", 987654321); in main()
1018 DOTEST(1024, "-87654321", 9, "%i", -87654321); in main()
1019 DOTEST(1024, "hello ", 16, "%-16s", "hello"); in main()
1020 DOTEST(1024, " ", 16, "%-16s", ""); in main()
1021 DOTEST(1024, "a ", 16, "%-16s", "a"); in main()
1022 DOTEST(1024, "foobarfoobar ", 16, "%-16s", "foobarfoobar"); in main()
1023 DOTEST(1024, "foobarfoobarfoobar", 18, "%-16s", "foobarfoobarfoobar"); in main()
1026 DOTEST(1024, "foo 1.0 size 512 edns", 21, in main()
1028 DOTEST(15, "foo 1.0 size 5", 21, in main()
1030 DOTEST(1024, "packet 1203ceff id", 18, in main()
1032 DOTEST(1024, "/tmp/testbound_123abcd.tmp", 26, "/tmp/testbound_%u%s%s.tmp", 123, "ab", "cd"); in main()