Changeset 713ba400 in mainline for uspace/lib/c/test/main.c

Timestamp:
2019-01-01T19:53:07Z (7 years ago)
Author:
Vojtech Horky <vojtech.horky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
858469f
Parents:
32236e5
Message:

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 :-).

(No files)

Note: See TracChangeset for help on using the changeset viewer.