Refactoring in tester and perf
commit713ba400ab6e8280ec0acb689e8a197838f7c5b7
authorVojtech Horky <vojtech.horky@gmail.com>
Tue, 1 Jan 2019 19:53:07 +0000 (1 20:53 +0100)
committerVojtech Horky <vojtech.horky@gmail.com>
Tue, 1 Jan 2019 19:53:07 +0000 (1 20:53 +0100)
treeb27ee93e2032c9aec496c626347d364350911d67
parent32236e543b3f74eca9e8c9ae2e2fd694b6c1b5f0
Refactoring in tester and perf

Use can_cast_size_t_to_int instead of the body of this function.

Also replaced "if" with assert() as the overflow (see diff) can rarely
happen and actually denotes a problem with the test itself (really,
test name longer than MAX_INT is insane).

Notice how the code from kernel was ported to userspace without changes
to the error text that would printed :-).
uspace/app/perf/perf.c
uspace/app/tester/tester.c