b:~/projects/r/šola/p2/dn/dn03_testi/naloga1[0]# make test name=inverz === COMPILING: === gcc -std=c99 -pedantic -Wall -c inverz.c === TESTING: === test01 -- OK test02 -- OK test03 -- OK test04 -- OK test05 -- OK test06 -- OK test07 -- OK test08 -- OK test09 -- OK test10 -- OK Result: 10 / 10 b:~/projects/r/šola/p2/dn/dn03_testi/naloga1[0]# rsync -a . a@ass:/tmp/naloga1 b:~/projects/r/šola/p2/dn/dn03_testi/naloga1[0]# ssh a@ass "cd /tmp/naloga1; make test name=inverz" === COMPILING: === gcc -std=c99 -pedantic -Wall -c inverz.c === TESTING: === test01 -- OK test02 -- OK test03 -- failed test04 -- timeout test05 -- OK test06.c: In function ‘main’: test06.c:19:28: warning: overflow in conversion from ‘long long int’ to ‘long int’ changes value from ‘16000000000000’ to ‘1246822400’ [-Woverflow] 19 | printf("%ld\n", inverz(16 * E12, 1, E9)); | ^ test06.c:9:13: warning: overflow in conversion from ‘long long int’ to ‘long int’ changes value from ‘10000000000000000’ to ‘1874919424’ [-Woverflow] 9 | #define E16 10000000000000000L | ^~~~~~~~~~~~~~~~~~ test06.c:20:28: note: in expansion of macro ‘E16’ 20 | printf("%ld\n", inverz(E16, 1, E9)); | ^~~ test06.c:10:13: warning: overflow in conversion from ‘long long int’ to ‘long int’ changes value from ‘1000000000000000000’ to ‘-1486618624’ [-Woverflow] 10 | #define E18 1000000000000000000L | ^~~~~~~~~~~~~~~~~~~~ test06.c:21:28: note: in expansion of macro ‘E18’ 21 | printf("%ld\n", inverz(E18, 1, E9)); | ^~~ test06 -- timeout test07.c: In function ‘main’: test07.c:17:30: warning: integer overflow in expression of type ‘long int’ results in ‘410065408’ [-Woverflow] 17 | printf("%ld\n", inverz(9 * E9 - 1, 1, E12)); | ^ test07.c:7:13: warning: overflow in conversion from ‘long long int’ to ‘long int’ changes value from ‘1000000000000’ to ‘-727379968’ [-Woverflow] 7 | #define E12 1000000000000L | ^~~~~~~~~~~~~~ test07.c:17:43: note: in expansion of macro ‘E12’ 17 | printf("%ld\n", inverz(9 * E9 - 1, 1, E12)); | ^~~ test07.c:18:28: warning: overflow in conversion from ‘long long int’ to ‘long int’ changes value from ‘16000000000001’ to ‘1246822401’ [-Woverflow] 18 | printf("%ld\n", inverz(16 * E12 + 1, 1, E15)); | ^~~~~~~~~~~~ test07.c:8:13: warning: overflow in conversion from ‘long long int’ to ‘long int’ changes value from ‘1000000000000000’ to ‘-1530494976’ [-Woverflow] 8 | #define E15 1000000000000000L | ^~~~~~~~~~~~~~~~~ test07.c:18:45: note: in expansion of macro ‘E15’ 18 | printf("%ld\n", inverz(16 * E12 + 1, 1, E15)); | ^~~ test07.c:8:13: warning: overflow in conversion from ‘long long int’ to ‘long int’ changes value from ‘1000000000000001’ to ‘-1530494975’ [-Woverflow] 8 | #define E15 1000000000000000L | ^ test07.c:19:28: note: in expansion of macro ‘E15’ 19 | printf("%ld\n", inverz(E15 + 1, 1, E17)); | ^~~ test07.c:9:13: warning: overflow in conversion from ‘long long int’ to ‘long int’ changes value from ‘100000000000000000’ to ‘1569325056’ [-Woverflow] 9 | #define E17 100000000000000000L | ^~~~~~~~~~~~~~~~~~~ test07.c:19:40: note: in expansion of macro ‘E17’ 19 | printf("%ld\n", inverz(E15 + 1, 1, E17)); | ^~~ test07.c:9:13: warning: overflow in conversion from ‘long long int’ to ‘long int’ changes value from ‘99999999999999999’ to ‘1569325055’ [-Woverflow] 9 | #define E17 100000000000000000L | ^ test07.c:20:28: note: in expansion of macro ‘E17’ 20 | printf("%ld\n", inverz(E17 - 1, 1, E17)); | ^~~ test07.c:9:13: warning: overflow in conversion from ‘long long int’ to ‘long int’ changes value from ‘100000000000000000’ to ‘1569325056’ [-Woverflow] 9 | #define E17 100000000000000000L | ^~~~~~~~~~~~~~~~~~~ test07.c:20:40: note: in expansion of macro ‘E17’ 20 | printf("%ld\n", inverz(E17 - 1, 1, E17)); | ^~~ test07 -- timeout test08 -- timeout test09.c: In function ‘main’: test09.c:6:13: warning: overflow in conversion from ‘long long int’ to ‘long int’ changes value from ‘100000000000000’ to ‘276447232’ [-Woverflow] 6 | #define E14 100000000000000L | ^~~~~~~~~~~~~~~~ test09.c:17:28: note: in expansion of macro ‘E14’ 17 | printf("%ld\n", inverz(E14, E13, E18)); | ^~~ test09.c:5:13: warning: overflow in conversion from ‘long long int’ to ‘long int’ changes value from ‘10000000000000’ to ‘1316134912’ [-Woverflow] 5 | #define E13 10000000000000L | ^~~~~~~~~~~~~~~ test09.c:17:33: note: in expansion of macro ‘E13’ 17 | printf("%ld\n", inverz(E14, E13, E18)); | ^~~ test09.c:10:13: warning: overflow in conversion from ‘long long int’ to ‘long int’ changes value from ‘1000000000000000000’ to ‘-1486618624’ [-Woverflow] 10 | #define E18 1000000000000000000L | ^~~~~~~~~~~~~~~~~~~~ test09.c:17:38: note: in expansion of macro ‘E18’ 17 | printf("%ld\n", inverz(E14, E13, E18)); | ^~~ test09.c:7:13: warning: overflow in conversion from ‘long long int’ to ‘long int’ changes value from ‘1000000000000000’ to ‘-1530494976’ [-Woverflow] 7 | #define E15 1000000000000000L | ^~~~~~~~~~~~~~~~~ test09.c:18:28: note: in expansion of macro ‘E15’ 18 | printf("%ld\n", inverz(E15, E15, E15)); | ^~~ test09.c:7:13: warning: overflow in conversion from ‘long long int’ to ‘long int’ changes value from ‘1000000000000000’ to ‘-1530494976’ [-Woverflow] 7 | #define E15 1000000000000000L | ^~~~~~~~~~~~~~~~~ test09.c:18:33: note: in expansion of macro ‘E15’ 18 | printf("%ld\n", inverz(E15, E15, E15)); | ^~~ test09.c:7:13: warning: overflow in conversion from ‘long long int’ to ‘long int’ changes value from ‘1000000000000000’ to ‘-1530494976’ [-Woverflow] 7 | #define E15 1000000000000000L | ^~~~~~~~~~~~~~~~~ test09.c:18:38: note: in expansion of macro ‘E15’ 18 | printf("%ld\n", inverz(E15, E15, E15)); | ^~~ test09.c:8:13: warning: overflow in conversion from ‘long long int’ to ‘long int’ changes value from ‘10000000000000000’ to ‘1874919424’ [-Woverflow] 8 | #define E16 10000000000000000L | ^~~~~~~~~~~~~~~~~~ test09.c:19:28: note: in expansion of macro ‘E16’ 19 | printf("%ld\n", inverz(E16, E14, E17)); | ^~~ test09.c:6:13: warning: overflow in conversion from ‘long long int’ to ‘long int’ changes value from ‘100000000000000’ to ‘276447232’ [-Woverflow] 6 | #define E14 100000000000000L | ^~~~~~~~~~~~~~~~ test09.c:19:33: note: in expansion of macro ‘E14’ 19 | printf("%ld\n", inverz(E16, E14, E17)); | ^~~ test09.c:9:13: warning: overflow in conversion from ‘long long int’ to ‘long int’ changes value from ‘100000000000000000’ to ‘1569325056’ [-Woverflow] 9 | #define E17 100000000000000000L | ^~~~~~~~~~~~~~~~~~~ test09.c:19:38: note: in expansion of macro ‘E17’ 19 | printf("%ld\n", inverz(E16, E14, E17)); | ^~~ test09.c:9:13: warning: overflow in conversion from ‘long long int’ to ‘long int’ changes value from ‘100000000000000000’ to ‘1569325056’ [-Woverflow] 9 | #define E17 100000000000000000L | ^~~~~~~~~~~~~~~~~~~ test09.c:20:28: note: in expansion of macro ‘E17’ 20 | printf("%ld\n", inverz(E17, E17, E18)); | ^~~ test09.c:9:13: warning: overflow in conversion from ‘long long int’ to ‘long int’ changes value from ‘100000000000000000’ to ‘1569325056’ [-Woverflow] 9 | #define E17 100000000000000000L | ^~~~~~~~~~~~~~~~~~~ test09.c:20:33: note: in expansion of macro ‘E17’ 20 | printf("%ld\n", inverz(E17, E17, E18)); | ^~~ test09.c:10:13: warning: overflow in conversion from ‘long long int’ to ‘long int’ changes value from ‘1000000000000000000’ to ‘-1486618624’ [-Woverflow] 10 | #define E18 1000000000000000000L | ^~~~~~~~~~~~~~~~~~~~ test09.c:20:38: note: in expansion of macro ‘E18’ 20 | printf("%ld\n", inverz(E17, E17, E18)); | ^~~ test09.c:10:13: warning: overflow in conversion from ‘long long int’ to ‘long int’ changes value from ‘1000000000000000000’ to ‘-1486618624’ [-Woverflow] 10 | #define E18 1000000000000000000L | ^~~~~~~~~~~~~~~~~~~~ test09.c:21:28: note: in expansion of macro ‘E18’ 21 | printf("%ld\n", inverz(E18, E13, E18)); | ^~~ test09.c:5:13: warning: overflow in conversion from ‘long long int’ to ‘long int’ changes value from ‘10000000000000’ to ‘1316134912’ [-Woverflow] 5 | #define E13 10000000000000L | ^~~~~~~~~~~~~~~ test09.c:21:33: note: in expansion of macro ‘E13’ 21 | printf("%ld\n", inverz(E18, E13, E18)); | ^~~ test09.c:10:13: warning: overflow in conversion from ‘long long int’ to ‘long int’ changes value from ‘1000000000000000000’ to ‘-1486618624’ [-Woverflow] 10 | #define E18 1000000000000000000L | ^~~~~~~~~~~~~~~~~~~~ test09.c:21:38: note: in expansion of macro ‘E18’ 21 | printf("%ld\n", inverz(E18, E13, E18)); | ^~~ test09 -- timeout test10.c: In function ‘main’: test10.c:5:13: warning: overflow in conversion from ‘long long int’ to ‘long int’ changes value from ‘10000000000000’ to ‘1316134912’ [-Woverflow] 5 | #define E13 10000000000000L | ^~~~~~~~~~~~~~~ test10.c:17:30: note: in expansion of macro ‘E13’ 17 | printf("%ld\n", inverz(f(E13), 1, E18)); | ^~~ test10.c:10:13: warning: overflow in conversion from ‘long long int’ to ‘long int’ changes value from ‘1000000000000000000’ to ‘-1486618624’ [-Woverflow] 10 | #define E18 1000000000000000000L | ^~~~~~~~~~~~~~~~~~~~ test10.c:17:39: note: in expansion of macro ‘E18’ 17 | printf("%ld\n", inverz(f(E13), 1, E18)); | ^~~ test10.c:6:13: warning: overflow in conversion from ‘long long int’ to ‘long int’ changes value from ‘100000000000000’ to ‘276447232’ [-Woverflow] 6 | #define E14 100000000000000L | ^~~~~~~~~~~~~~~~ test10.c:18:30: note: in expansion of macro ‘E14’ 18 | printf("%ld\n", inverz(f(E14), 1, E18)); | ^~~ test10.c:10:13: warning: overflow in conversion from ‘long long int’ to ‘long int’ changes value from ‘1000000000000000000’ to ‘-1486618624’ [-Woverflow] 10 | #define E18 1000000000000000000L | ^~~~~~~~~~~~~~~~~~~~ test10.c:18:39: note: in expansion of macro ‘E18’ 18 | printf("%ld\n", inverz(f(E14), 1, E18)); | ^~~ test10.c:7:13: warning: overflow in conversion from ‘long long int’ to ‘long int’ changes value from ‘1000000000000000’ to ‘-1530494976’ [-Woverflow] 7 | #define E15 1000000000000000L | ^~~~~~~~~~~~~~~~~ test10.c:19:30: note: in expansion of macro ‘E15’ 19 | printf("%ld\n", inverz(f(E15), 1, E18)); | ^~~ test10.c:10:13: warning: overflow in conversion from ‘long long int’ to ‘long int’ changes value from ‘1000000000000000000’ to ‘-1486618624’ [-Woverflow] 10 | #define E18 1000000000000000000L | ^~~~~~~~~~~~~~~~~~~~ test10.c:19:39: note: in expansion of macro ‘E18’ 19 | printf("%ld\n", inverz(f(E15), 1, E18)); | ^~~ test10.c:8:13: warning: overflow in conversion from ‘long long int’ to ‘long int’ changes value from ‘10000000000000000’ to ‘1874919424’ [-Woverflow] 8 | #define E16 10000000000000000L | ^~~~~~~~~~~~~~~~~~ test10.c:20:30: note: in expansion of macro ‘E16’ 20 | printf("%ld\n", inverz(f(E16), 1, E18)); | ^~~ test10.c:10:13: warning: overflow in conversion from ‘long long int’ to ‘long int’ changes value from ‘1000000000000000000’ to ‘-1486618624’ [-Woverflow] 10 | #define E18 1000000000000000000L | ^~~~~~~~~~~~~~~~~~~~ test10.c:20:39: note: in expansion of macro ‘E18’ 20 | printf("%ld\n", inverz(f(E16), 1, E18)); | ^~~ test10.c:9:13: warning: overflow in conversion from ‘long long int’ to ‘long int’ changes value from ‘100000000000000000’ to ‘1569325056’ [-Woverflow] 9 | #define E17 100000000000000000L | ^~~~~~~~~~~~~~~~~~~ test10.c:21:30: note: in expansion of macro ‘E17’ 21 | printf("%ld\n", inverz(f(E17), 1, E18)); | ^~~ test10.c:10:13: warning: overflow in conversion from ‘long long int’ to ‘long int’ changes value from ‘1000000000000000000’ to ‘-1486618624’ [-Woverflow] 10 | #define E18 1000000000000000000L | ^~~~~~~~~~~~~~~~~~~~ test10.c:21:39: note: in expansion of macro ‘E18’ 21 | printf("%ld\n", inverz(f(E17), 1, E18)); | ^~~ test10 -- timeout Result: 3 / 10 b:~/projects/r/šola/p2/dn/dn03_testi/naloga1[0]#